diff options
author | Julie Moronuki <jdog74@gmail.com> | 2017-10-31 01:15:41 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-11-03 10:19:41 -0400 |
commit | df479f7c1e3f877e9981f16374bfdf03e79e57f4 (patch) | |
tree | b0b5bd5ff690625f36489912235977066bcd4713 | |
parent | 5d48f7ce7030ea764446d3ad8cecd60d016f3197 (diff) | |
download | haskell-df479f7c1e3f877e9981f16374bfdf03e79e57f4.tar.gz |
change example from msum to mfilter
-rw-r--r-- | libraries/base/Control/Monad.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/Control/Monad.hs b/libraries/base/Control/Monad.hs index a3eaa720c6..0706c869a0 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 -} |