Proposal: Generalize forever to Applicative

Brent Yorgey byorgey at gmail.com
Tue May 12 13:54:25 UTC 2015


+1.

On Tue, May 12, 2015 at 3:44 AM Michael Snoyman <michael at snoyman.com> wrote:

> +1
>
>
> On Tue, May 12, 2015 at 8:05 AM David Feuer <david.feuer at gmail.com> wrote:
>
>> This looks like a no-brainer to me:
>>
>> forever :: Applicative f => f a -> f b
>> forever a = let x = a *> x in x
>> _______________________________________________
>> Libraries mailing list
>> Libraries at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20150512/3c45f32c/attachment.html>


More information about the Libraries mailing list