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

Johan Tibell johan.tibell at gmail.com
Sat Jul 11 04:05:15 EDT 2009


On Sat, Jul 11, 2009 at 9:35 AM, Jeff Wheeler <jeff at nokrev.com> wrote:

> 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.
>

I also think void is clearer than ignore.

-- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090711/fc777cbc/attachment.html


More information about the Haskell-Cafe mailing list