Commit 8c0740b7 authored by Simon Jakobi's avatar Simon Jakobi Committed by Marge Bot

docs: Add examples for Data.Semigroup.Arg{Min,Max}

Context: #17153
parent 8ad8dc41
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment