[commit: ghc] wip/T16197: Fix typo in maybeToList documentation (4204ed5)

git at git.haskell.org git at git.haskell.org
Thu Jan 17 13:59:19 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T16197
Link       : http://ghc.haskell.org/trac/ghc/changeset/4204ed581821df7f0a58d823347966ec541e1d99/ghc

>---------------------------------------------------------------

commit 4204ed581821df7f0a58d823347966ec541e1d99
Author: Steve Hart <steve at stevehart.net>
Date:   Wed Jan 9 22:21:38 2019 -0500

    Fix typo in maybeToList documentation


>---------------------------------------------------------------

4204ed581821df7f0a58d823347966ec541e1d99
 libraries/base/Data/Maybe.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/base/Data/Maybe.hs b/libraries/base/Data/Maybe.hs
index 2a3e0ef..c3049f3 100644
--- a/libraries/base/Data/Maybe.hs
+++ b/libraries/base/Data/Maybe.hs
@@ -175,7 +175,7 @@ fromMaybe     :: a -> Maybe a -> a
 fromMaybe d x = case x of {Nothing -> d;Just v  -> v}
 
 -- | The 'maybeToList' function returns an empty list when given
--- 'Nothing' or a singleton list when not given 'Nothing'.
+-- 'Nothing' or a singleton list when not given 'Just'.
 --
 -- ==== __Examples__
 --



More information about the ghc-commits mailing list