Commit 21f9bc43 authored by Wieland Hoffmann's avatar Wieland Hoffmann Committed by Austin Seipp

mapMaybe: Typo in the comment (#9644)

Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent 87cd37b7
......@@ -87,7 +87,7 @@ catMaybes ls = [x | Just x <- ls]
-- | The 'mapMaybe' function is a version of 'map' which can throw
-- out elements. In particular, the functional argument returns
-- something of type @'Maybe' b@. If this is 'Nothing', no element
-- is added on to the result list. If it just @'Just' b@, then @b@ is
-- is added on to the result list. If it is @'Just' b@, then @b@ is
-- included in the result list.
mapMaybe :: (a -> Maybe b) -> [a] -> [b]
mapMaybe _ [] = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment