Improving void
Edward Kmett
ekmett at gmail.com
Tue Aug 6 01:57:06 CEST 2013
Sure, but I figured there was no pain in going through the ceremony of it
all. ;)
-Edward
On Mon, Aug 5, 2013 at 5:35 PM, David Luposchainsky <
dluposchainsky at googlemail.com> wrote:
> On 2013-08-05 21:06, Edward Kmett wrote:
> > Right now the definition of Control.Monad.void is:
> >
> > void :: Functor f => f a -> f ()
> > void = fmap (const ())
> >
> > I propose we replace it with
> >
> > void :: Functor f => f a -> f ()
> > void = (() <$)
>
> I don't see any argument against that. I'd say this is a no-brainer
> nobody would mind being done without doing the mailing list thing.
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130805/c99b61d9/attachment.htm>
More information about the Libraries
mailing list