Proposal: Generalize maybeNew
Bas van Dijk
v.dijk.bas at gmail.com
Tue Mar 8 22:37:34 CET 2011
Hi,
This is a tiny proposal to generalize Foreign.Marshal.Utils.maybeNew[1] 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)
Discussion period: 2 weeks.
Bas
[1] http://hackage.haskell.org/packages/archive/base/latest/doc/html/Foreign-Marshal-Utils.html#v:maybeNew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generalize_maybeNew.dpatch
Type: application/octet-stream
Size: 68335 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20110308/cb0f3c1f/attachment-0001.obj>
More information about the Libraries
mailing list