Functor, Applicative, Monad, Foldable, Traversable instances for (, , ) a b
Edward Kmett
ekmett at gmail.com
Fri Mar 31 23:50:23 UTC 2017
- Previous message: Functor, Applicative, Monad, Foldable, Traversable instances for (, , ) a b
- Next message: Functor, Applicative, Monad, Foldable, Traversable instances for (, , ) a b
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
The Monad instance for pairs came later mostly because there was a big
dependency inversion / orphan problem with getting at Monoid for it, but
yes.
-Edward
On Fri, Mar 31, 2017 at 1:24 PM, Henning Thielemann <
lemming at henning-thielemann.de> wrote:
>
> On Fri, 31 Mar 2017, Herbert Valerio Riedel wrote:
>
> On Thu, Mar 30, 2017 at 10:47 PM Bryan Richter <b at chreekat.net> wrote:
>> I just don't know why pairs ever got to Functor. I fear this was an
>> ancient decision... no?
>>
>>
>> If you're curious, this happened over 10 years ago:
>>
>> http://git.haskell.org/ghc.git/commitdiff/209bf03ac7949c9bcf
>> 677561a2b1360b158e3b22
>>
>
> Interesting. The Functor instance for pairs was added together with the
> Functor instance for functions. But the Monad instance for pairs came
> later, right?
>
> _______________________________________________
> 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/20170331/d2a87e24/attachment.html>
- Previous message: Functor, Applicative, Monad, Foldable, Traversable instances for (, , ) a b
- Next message: Functor, Applicative, Monad, Foldable, Traversable instances for (, , ) a b
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Libraries
mailing list