Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Parameterized.Data.Semigroup
Documentation
class PSemigroup (n :: k -> Type) (t :: k) (u :: k) (v :: k) | t u -> v where Source #
Parameterized version of (<>) in Semigroup
If used in conjunction with Empty
, ie as a parameterized Monoid,
then the instance should follow the following laws:
* pmempty'
* pmappend'
x = xx
* pmappend'
pempty' = xx
pmappend'
(y pmappend'
z) = (x pmappend'
y) pmappend'
z