
9 Jan
2010
9 Jan
'10
3:08 a.m.
On Fri, Jan 8, 2010 at 9:54 PM, Jeremy Shaw
Not sure if this came up already, but there is a less general version of void in Foreign.Marshal.Error:
http://www.haskell.org/ghc/docs/latest/html/libraries/base-4.2.0.0/Foreign-M...
void :: IO a -> IO () Discard the return value of an IO action
Are there plans to unify the two? Perhaps Foreign.Marshal.Error can just re-export void from Control.Monad?
- jeremy
Don brought it up, and it's a consideration behind picking the name 'void'. Re-exporting with the type signature (ie. rewrite it to be void :: IO a -> IO (); void = Control.Monad.void) is easy and won't break anything; it's something that can be done after Control.Monad.void has been added. One thing at a time. -- gwern