Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
4dbe4330
Commit
4dbe4330
authored
Nov 04, 2014
by
Herbert Valerio Riedel
🕺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor Haddock markup improvement to Data.Monoid
[skip ci]
parent
49fde3b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
libraries/base/Data/Monoid.hs
libraries/base/Data/Monoid.hs
+7
-7
No files found.
libraries/base/Data/Monoid.hs
View file @
4dbe4330
...
...
@@ -23,18 +23,18 @@
-----------------------------------------------------------------------------
module
Data.Monoid
(
-- * Monoid typeclass
-- *
'
Monoid
'
typeclass
Monoid
(
..
),
(
<>
),
Dual
(
..
),
Endo
(
..
),
-- * Bool wrappers
-- *
'
Bool
'
wrappers
All
(
..
),
Any
(
..
),
-- * Num wrappers
-- *
'
Num
'
wrappers
Sum
(
..
),
Product
(
..
),
-- * Maybe wrappers
-- *
'
Maybe
'
wrappers
-- $MaybeExamples
First
(
..
),
Last
(
..
),
...
...
@@ -67,7 +67,7 @@ infixr 6 <>
-- Monoid instances.
-- | The dual of a
m
onoid, obtained by swapping the arguments of 'mappend'.
-- | The dual of a
'M
onoid
'
, obtained by swapping the arguments of 'mappend'.
newtype
Dual
a
=
Dual
{
getDual
::
a
}
deriving
(
Eq
,
Ord
,
Read
,
Show
,
Bounded
,
Generic
,
Generic1
)
...
...
@@ -83,7 +83,7 @@ instance Monoid (Endo a) where
mempty
=
Endo
id
Endo
f
`
mappend
`
Endo
g
=
Endo
(
f
.
g
)
-- | Boolean monoid under conjunction.
-- | Boolean monoid under conjunction
('&&')
.
newtype
All
=
All
{
getAll
::
Bool
}
deriving
(
Eq
,
Ord
,
Read
,
Show
,
Bounded
,
Generic
)
...
...
@@ -91,7 +91,7 @@ instance Monoid All where
mempty
=
All
True
All
x
`
mappend
`
All
y
=
All
(
x
&&
y
)
-- | Boolean monoid under disjunction.
-- | Boolean monoid under disjunction
('||')
.
newtype
Any
=
Any
{
getAny
::
Bool
}
deriving
(
Eq
,
Ord
,
Read
,
Show
,
Bounded
,
Generic
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment