[Haskell-cafe] Foreign.Marshal.Error.void

brian brianchina60221 at gmail.com
Tue Oct 14 14:07:31 EDT 2008

On Tue, Oct 14, 2008 at 12:52 PM, Mauricio <briqueabraque at yahoo.com> wrote:
> Wouldn't it be nice if we had something
> like 'void' in Foreign.Marshal.Error in
> standard monad functions, so that we could
> use it instead of, for instance, mapM_
> or sequence_?

Dunno. I thought about using 'void' in the situation where my 'when'
action wasn't IO (). It was IO something else, where the something
wasn't something I needed. It's a little irritating to have to do >>
return () or whatever.

More information about the Haskell-Cafe mailing list