#5044: Proposal: Generalize maybeNew
---------------------------------+------------------------------------------
    Reporter:  basvandijk        |       Owner:                
        Type:  task              |      Status:  new           
    Priority:  normal            |   Component:  libraries/base
     Version:  7.0.2             |    Keywords:                
    Testcase:                    |   Blockedby:                
          Os:  Unknown/Multiple  |    Blocking:                
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown  
---------------------------------+------------------------------------------
 This is a tiny proposal to generalize
 
`Foreign.Marshal.Utils.`[http://hackage.haskell.org/packages/archive/base/latest/doc/html
 /Foreign-Marshal-Utils.html#v:maybeNew maybeNew] from:
 {{{
 maybeNew :: (      a -> IO (Ptr a))
          -> (Maybe a -> IO (Ptr a))
 }}}
 to:
 {{{
 maybeNew :: (      a -> IO (Ptr b))
          -> (Maybe a -> IO (Ptr b))
 }}}
 so that it becomes consistent with `maybeWith`:
 {{{
 maybeWith :: (      a -> (Ptr b -> IO c) -> IO c)
           -> (Maybe a -> (Ptr b -> IO c) -> IO c)
 }}}

 The [http://www.haskell.org/pipermail/libraries/2011-March/016027.html
 thread] on the libraries list didn't get any replies so I guess there's a
 consensus.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5044>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to