summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaavo <pparkkin@gmail.com>2020-03-14 21:33:39 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-03-17 07:38:48 -0400
commit75168d07c9c30289709423fc184bbab8dcad0f4e (patch)
tree93bdc10d281ce7e6f5030e1030569b3bf878d4a2
parent4d85d68b004a3d577c0e27d9e6fdddd118e8a9f3 (diff)
downloadhaskell-75168d07c9c30289709423fc184bbab8dcad0f4e.tar.gz
Make example collapsible
-rw-r--r--libraries/base/Data/Semigroup.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/base/Data/Semigroup.hs b/libraries/base/Data/Semigroup.hs
index d4de06fe0c..bde40fa57a 100644
--- a/libraries/base/Data/Semigroup.hs
+++ b/libraries/base/Data/Semigroup.hs
@@ -126,6 +126,7 @@ cycle1 xs = xs' where xs' = xs <> xs'
-- | This lets you use a difference list of a 'Semigroup' as a 'Monoid'.
--
+-- === __Example:__
-- >>> let hello = diff "Hello, "
-- >>> appEndo hello "World!"
-- "Hello, World!"