[Git][ghc/ghc][master] docs: Add examples for Data.Semigroup.Arg{Min,Max}
Marge Bot
gitlab at gitlab.haskell.org
Wed May 13 06:04:42 UTC 2020
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
8c0740b7 by Simon Jakobi at 2020-05-13T02:04:33-04:00
docs: Add examples for Data.Semigroup.Arg{Min,Max}
Context: #17153
- - - - -
1 changed file:
- libraries/base/Data/Semigroup.hs
Changes:
=====================================
libraries/base/Data/Semigroup.hs
=====================================
@@ -302,7 +302,14 @@ data Arg a b = Arg
, Generic1 -- ^ @since 4.9.0.0
)
+-- |
+-- >>> Min (Arg 0 ()) <> Min (Arg 1 ())
+-- Min {getMin = Arg 0 ()}
type ArgMin a b = Min (Arg a b)
+
+-- |
+-- >>> Max (Arg 0 ()) <> Max (Arg 1 ())
+-- Max {getMax = Arg 1 ()}
type ArgMax a b = Max (Arg a b)
-- | @since 4.9.0.0
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8c0740b7c38184378aedefdca8fff35707c80de9
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8c0740b7c38184378aedefdca8fff35707c80de9
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200513/9b431001/attachment.html>
More information about the ghc-commits
mailing list