Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
21f9bc43
Commit
21f9bc43
authored
Sep 28, 2014
by
Wieland Hoffmann
Committed by
Austin Seipp
Nov 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapMaybe: Typo in the comment (
#9644
)
Signed-off-by:
Austin Seipp
<
austin@well-typed.com
>
parent
87cd37b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libraries/base/Data/Maybe.hs
libraries/base/Data/Maybe.hs
+1
-1
No files found.
libraries/base/Data/Maybe.hs
View file @
21f9bc43
...
...
@@ -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
_
[]
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment