[commit: ghc] master: Fix example in `asum` docs (5de8e26)

git at git.haskell.org git at git.haskell.org
Mon Jul 16 23:48:30 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/5de8e262775f8248556431be5868dd8457921343/ghc

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

commit 5de8e262775f8248556431be5868dd8457921343
Author: Simon Jakobi <simon.jakobi at gmail.com>
Date:   Mon Jul 2 14:52:47 2018 +0200

    Fix example in `asum` docs


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

5de8e262775f8248556431be5868dd8457921343
 libraries/base/Data/Foldable.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/base/Data/Foldable.hs b/libraries/base/Data/Foldable.hs
index 847eb56..52edeb1 100644
--- a/libraries/base/Data/Foldable.hs
+++ b/libraries/base/Data/Foldable.hs
@@ -574,7 +574,7 @@ sequence_ = foldr (>>) (return ())
 
 -- | The sum of a collection of actions, generalizing 'concat'.
 --
--- asum [Just "Hello", Nothing, Just "World"]
+-- >>> asum [Just "Hello", Nothing, Just "World"]
 -- Just "Hello"
 asum :: (Foldable t, Alternative f) => t (f a) -> f a
 {-# INLINE asum #-}



More information about the ghc-commits mailing list