move Monad and MonadFix instances for Either from mtl (proposal #4159)
authorRoss Paterson <ross@soi.city.ac.uk>
Thu, 29 Jul 2010 12:24:49 +0000 (12:24 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Thu, 29 Jul 2010 12:24:49 +0000 (12:24 +0000)
commit6ecbc9c6c22c0c5de88d138abe10174bb09ba903
treee5e3b1b6d377a8fcd91fd32510d80494c2c9cdbe
parentb2b31d17c6599257a1bd3a3ba7a76d32ed2f28e5
move Monad and MonadFix instances for Either from mtl (proposal #4159)

The Monad and MonadFix instances for Either (formerly in the mtl
package) are moved to Control.Monad.Instances and Control.Monad.Fix
respectively.  The Monad instance is still an orphan, to retain Haskell
98 compatibility, but the MonadFix instance is together with its class.
The Error constraint is removed from both instances, and the default
definition of fail is used.
Control/Monad/Fix.hs
Control/Monad/Instances.hs