Add missing Applicative/Alternative instances (AMP phase 1)
Add Functor/Applicative/Alternative instances to GHC's source where they are missing to fit the new hierarchy, namely Functor => Applicative => Monad
and (Alternative, Monad) => MonadPlus
.
(#4834 (closed) did something similar for a past GHC version, which is maybe helpful here.)
This is part of phase 1 of the Applicative/Monad proposal (AMP), as discussed on the mailing lists [1]; a more detailed description of the AMP is available on the Wiki [2].
[1]: http://article.gmane.org/gmane.comp.lang.haskell.libraries/19482 [2]: http://www.haskell.org/haskellwiki/Functor-Applicative-Monad_Proposal
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.3 |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |