[Haskell-cafe] Re: Adding an ignore function to Control.Monad

Jeff Wheeler jeff at nokrev.com
Sat Jul 11 03:35:27 EDT 2009

On Fri, Jul 10, 2009 at 10:10 PM, Don Stewart<dons at galois.com> wrote:

>> ## Control.Monad.void m a -> m ()
>> Don Stewart
>> Iavor Diatchki

For whatever it's worth, I prefer void as well, for the exact reason
Don said. Indeed, 'ignore' indicates to me that the argument won't
even be evaluated: it'll be ignored, and skipped. But it is, and only
part --- the result --- is ignored.

What about 'void' with functors?

Jeff Wheeler

More information about the Haskell-Cafe mailing list