Skip to content

Commit 4a34e59

Browse files
committed
Remove group references in additive semigroup docs
1 parent 807269f commit 4a34e59

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Data/Semigroup/Additive.hs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,28 @@ import GHC.Generics
2424
-- | An 'Additive' 'Semigroup' is one where (<>) is commutative
2525
class Semigroup q => Additive q where
2626

27-
-- | Trivial group.
27+
-- | Trivial additive semigroup.
2828
instance Additive ()
2929

30-
-- | Product group. A Pair of groups gives rise to a group
30+
-- | Product additive semigroup.
31+
-- A Pair of additive semigroups gives rise to a additive semigroup
3132
instance (Additive a, Additive b) => Additive (a, b)
3233

3334
-- See https://gitlab.haskell.org/ghc/ghc/issues/11135#note_111802 for the reason Compose is not also provided.
3435
-- Base does not define Monoid (Compose f g a) so this is the best we can
3536
-- really do for functor composition.
3637
instance Additive (f (g a)) => Additive ((f :.: g) a)
3738

38-
-- | Product of groups, Functor style.
39+
-- | Product of additive semigroups, Functor style.
3940
instance (Additive (f a), Additive (g a)) => Additive ((f :*: g) a)
4041

41-
-- | Trivial group, Functor style
42+
-- | Trivial additive semigroup, Functor style
4243
instance Additive (Proxy x)
4344

44-
-- | Const lifts groups into a functor.
45+
-- | Const lifts additive semigroups into a functor.
4546
instance Additive a => Additive (Const a x)
46-
-- | Ideitnty lifts groups pointwise (at only one point)
47+
-- | Ideitnty lifts additive semigroups pointwise (at only one point)
4748
instance Additive a => Additive (Identity a)
4849

49-
-- | Functions lift groups pointwise.
50+
-- | Functions lift additive semigroups pointwise.
5051
instance Additive b => Additive (a -> b)

0 commit comments

Comments
 (0)