darcs patch: Control.Monad: +void :: f a -> f ()

gwern0 at gmail.com gwern0 at gmail.com
Fri Jan 8 16:53:07 EST 2010

Fri Jan  8 16:44:55 EST 2010  gwern0 at gmail.com
  * Control.Monad: +void :: f a -> f ()
  See http://hackage.haskell.org/trac/ghc/ticket/3292
  Turns m a -> m (). Lets one call functions for their side-effects without
  having to get rid of their return values with '>> return ()'. Very useful
  in many contexts (parsing, IO etc.); particularly good for 'forkIO' and 'forM_',
  as they demand return types of 'IO ()' though most interesting IO functions
  return non-().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 25553 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/libraries/attachments/20100108/feb283ca/attachment-0001.bin

More information about the Libraries mailing list