[commit: ghc] master: change example from msum to mfilter (df479f7)

git at git.haskell.org git at git.haskell.org
Fri Nov 3 16:39:21 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/df479f7c1e3f877e9981f16374bfdf03e79e57f4/ghc

>---------------------------------------------------------------

commit df479f7c1e3f877e9981f16374bfdf03e79e57f4
Author: Julie Moronuki <jdog74 at gmail.com>
Date:   Tue Oct 31 01:15:41 2017 -0400

    change example from msum to mfilter


>---------------------------------------------------------------

df479f7c1e3f877e9981f16374bfdf03e79e57f4
 libraries/base/Control/Monad.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libraries/base/Control/Monad.hs b/libraries/base/Control/Monad.hs
index a3eaa72..0706c86 100644
--- a/libraries/base/Control/Monad.hs
+++ b/libraries/base/Control/Monad.hs
@@ -276,7 +276,7 @@ The functions in this library use the following naming conventions:
 * A prefix \'@m@\' generalizes an existing function to a monadic form.
   Thus, for example:
 
-> sum  :: Num a       => [a]   -> a
-> msum :: MonadPlus m => [m a] -> m a
+> filter  ::                (a -> Bool) -> [a] -> [a]
+> mfilter :: MonadPlus m => (a -> Bool) -> m a -> m a
 
 -}



More information about the ghc-commits mailing list