diff options
author | Paavo <pparkkin@gmail.com> | 2020-03-14 21:33:39 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-03-17 07:38:48 -0400 |
commit | 75168d07c9c30289709423fc184bbab8dcad0f4e (patch) | |
tree | 93bdc10d281ce7e6f5030e1030569b3bf878d4a2 | |
parent | 4d85d68b004a3d577c0e27d9e6fdddd118e8a9f3 (diff) | |
download | haskell-75168d07c9c30289709423fc184bbab8dcad0f4e.tar.gz |
Make example collapsible
-rw-r--r-- | libraries/base/Data/Semigroup.hs | 1 |
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!" |