
24 Jun
2008
24 Jun
'08
10:14 a.m.
Ashley Yakeley
Make Applicative (in Control.Applicative) a superclass of Monad (in Control.Monad).
I'm strongly against. Some datatypes have several different possible implementations of Applicative, for instance, they may be either lazy or strict. The PolyParse library relies crucially on the fact that the Monad and Applicative instances for the Parser type have different strictness behaviours. I worry that if Applicative were to become a superclass of Monad, this way of partitioning my API into lazy and strict portions may no longer be possible, or least, a good deal less convenient. Regards, Malcolm Footnote. PolyParse does not currently use the real Applicative class, but it probably ought to.