... | @@ -51,6 +51,9 @@ instanceFunctorFoowhere |
... | @@ -51,6 +51,9 @@ instanceFunctorFoowhere |
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Starting with GHC 7.10, defining `Monad(return)` is optional (with the default implementation `return = pure`). For code not required to be compatible with GHC versions prior to GHC 7.10 it's recommended to omit the explicit `return` definition.
|
|
|
|
|
|
|
|
|
|
For more details see [ AMP Proposal: Future-proofing current code](https://www.haskell.org/haskellwiki/Functor-Applicative-Monad_Proposal#Future-proofing_current_code).
|
|
For more details see [ AMP Proposal: Future-proofing current code](https://www.haskell.org/haskellwiki/Functor-Applicative-Monad_Proposal#Future-proofing_current_code).
|
|
|
|
|
|
#### GHC says `No instance for (Alternative ...)`
|
|
#### GHC says `No instance for (Alternative ...)`
|
... | | ... | |