Why do we need Control.Monad.Instances?

Bas van Dijk v.dijk.bas at gmail.com
Fri Nov 11 14:56:09 CET 2011


Hello,

I forgot the reason why we need Control.Monad.Instances which exports
orphaned Functor and Monad instances for ((->) r), ((,) a) and (Either
e):

https://github.com/ghc/packages-base/blob/master/Control/Monad/Instances.hs

Can't we just de-orphan these instances by moving the instances for
((->) r) and ((,) a) to GHC.Base and by moving the instances for
Either to Data.Either?

Regards,

Bas



More information about the Libraries mailing list