Adding Applicative/Functor instances to all Monads in GHC
wren ng thornton
wren at freegeek.org
Sun May 19 04:23:04 CEST 2013
On 5/16/13 7:33 AM, David Luposchainsky wrote:
> I recently went through GHC's source, and discovered there are quite a
> few instances of Monad that don't have Functor or Applicative instances.
> Fixing this is very easy by adding the standard instances (pure = return
> etc.), and will not break code.
+1.
If there're obviously superior definitions then those should be used
instead, of course.
--
Live well,
~wren
More information about the Libraries
mailing list