[GHC] #3524: Add mfilter to Control.Monad
GHC
trac at galois.com
Thu Sep 17 11:03:10 EDT 2009
#3524: Add mfilter to Control.Monad
-----------------------------+----------------------------------------------
Reporter: JonFairbairn | Owner:
Type: proposal | Status: new
Priority: normal | Component: libraries/base
Version: 6.10.4 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
In the comments of #3453, I contemplated a filter function on MonadPlus.
The consensus seems to be that this function is an appropriate addition.
mfilter is just List.filter generalised to any MonadPlus.
It must have been embodied in Monad comprehensions when we had those, so
I'm sure it's simply an oversight that it hasn't been included here
already.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3524>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list