Applicative ((,) a)
Conal Elliott
conal at conal.net
Fri Mar 9 20:23:06 EST 2007
What was the motivation for providing the following Applicative instance?
instance Monoid a => Applicative ((,) a) where
pure x = (mempty, x)
(u, f) <*> (v, x) = (u `mappend` v, f x)
Is this instance described in "Applicative Programming with
Effects<http://www.soi.city.ac.uk/%7Eross/papers/Applicative.html>"?
I didn't spot a mention.
Thanks, - Conal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/libraries/attachments/20070309/4920edee/attachment.htm
More information about the Libraries
mailing list