diff options
author | Simon Jakobi <simon.jakobi@gmail.com> | 2019-05-22 07:31:49 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-05-27 10:06:31 -0400 |
commit | 6d188dd526334ddbb5fb683eef7aa0be6c35a3a0 (patch) | |
tree | 7751a54c2c63f3eacb89519275ee5d41fce9d244 /libraries/base | |
parent | 723216e3ee8d5d535ca74b67748453f948d73d42 (diff) | |
download | haskell-6d188dd526334ddbb5fb683eef7aa0be6c35a3a0.tar.gz |
base: Include (<$) in all exports of Functor
Previously the haddocks for Control.Monad and Data.Functor gave
the impression that `fmap` was the only Functor method.
Fixes #16681.
Diffstat (limited to 'libraries/base')
-rw-r--r-- | libraries/base/Control/Monad.hs | 2 | ||||
-rw-r--r-- | libraries/base/Data/Functor.hs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/libraries/base/Control/Monad.hs b/libraries/base/Control/Monad.hs index 433d176eb1..3faf3b1f8b 100644 --- a/libraries/base/Control/Monad.hs +++ b/libraries/base/Control/Monad.hs @@ -18,7 +18,7 @@ module Control.Monad ( -- * Functor and monad classes - Functor(fmap) + Functor(..) , Monad((>>=), (>>), return) , MonadFail(fail) , MonadPlus(mzero, mplus) diff --git a/libraries/base/Data/Functor.hs b/libraries/base/Data/Functor.hs index 7afcffe05b..0862821124 100644 --- a/libraries/base/Data/Functor.hs +++ b/libraries/base/Data/Functor.hs @@ -39,8 +39,7 @@ module Data.Functor ( - Functor(fmap), - (<$), + Functor(..), ($>), (<$>), (<&>), |