[commit: ghc] wip/T16197: Improve clarity of documentation for maybeToList (46d46ed)
git at git.haskell.org
git at git.haskell.org
Thu Jan 17 13:59:22 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T16197
Link : http://ghc.haskell.org/trac/ghc/changeset/46d46ede77ef327966e9364800c7da52c208d8ae/ghc
>---------------------------------------------------------------
commit 46d46ede77ef327966e9364800c7da52c208d8ae
Author: Steve Hart <steve at stevehart.net>
Date: Thu Jan 10 08:30:47 2019 -0500
Improve clarity of documentation for maybeToList
>---------------------------------------------------------------
46d46ede77ef327966e9364800c7da52c208d8ae
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..2bd0b1e 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 given 'Just'.
--
-- ==== __Examples__
--
More information about the ghc-commits
mailing list