typo
This commit is contained in:
parent
dda78c61b8
commit
1e929c022d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ firstM p (x:xs) = do
|
|||
then return (Just x)
|
||||
else firstM p xs
|
||||
|
||||
{- Returns true if any value in the list satisfies the preducate,
|
||||
{- Returns true if any value in the list satisfies the predicate,
|
||||
- stopping once one is found. -}
|
||||
anyM :: (Monad m) => (a -> m Bool) -> [a] -> m Bool
|
||||
anyM p = liftM isJust . firstM p
|
||||
|
|
Loading…
Reference in a new issue