Adding an ignore function to Control.Monad

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Fri Jul 17 09:43:08 EDT 2009


Am Sonntag, 12. Juli 2009 11:54 schrieb Nicolas Pouillard:
> Excerpts from Michael Snoyman's message of Sat Jul 11 22:03:49 +0200 2009:
> > I'm not opposed to using void instead of ignore. Out of curiosity, is
> > anyone interested in having the Functor version of void? I'm not sure I
> > see a reason to unnecessarily limit ourselves to Monads here.
>
> +1 to a functor version

+1

The function could be used, for example, as a parser, and parsers are not 
always monads.

> What about 'discard'?

Sounds good.

Best wishes,
Wolfgang


More information about the Libraries mailing list