Proposal: Generalize forever to Applicative

David Feuer david.feuer at
Tue May 12 05:05:14 UTC 2015

This looks like a no-brainer to me:

forever :: Applicative f => f a -> f b
forever a = let x = a *> x in x
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Libraries mailing list