Safe Haskell | None |
---|
Compatibility layer for Data.Semigroup
Documentation
class Semigroup a where
(<>) :: a -> a -> a
class Monoid a where
Monoid Ordering | |
Monoid () | |
Monoid ByteString | |
Monoid ByteString | |
Monoid IntSet | |
Monoid Any | |
Monoid All | |
Monoid CDialect | |
Monoid Doc | |
Monoid BuildInfo | |
Monoid BenchmarkInterface | |
Monoid Benchmark | |
Monoid TestSuiteInterface | |
Monoid TestSuite | |
Monoid Executable | |
Monoid Library | |
Monoid ModuleRenaming | |
Monoid SetupBuildInfo | |
Monoid BenchmarkFlags | |
Monoid TestFlags | |
Monoid TestShowDetails | |
Monoid ReplFlags | |
Monoid BuildFlags | |
Monoid CleanFlags | |
Monoid HaddockFlags | |
Monoid HscolourFlags | |
Monoid RegisterFlags | |
Monoid SDistFlags | |
Monoid InstallFlags | |
Monoid CopyFlags | |
Monoid ConfigFlags | |
Monoid AllowNewer | |
Monoid GlobalFlags | |
Monoid GhcOptions | |
Monoid [a] | |
Monoid a => Monoid (Maybe a) | |
Ord a => Monoid (Set a) | |
Monoid (IntMap a) | |
Monoid (Seq a) | |
Monoid (Endo a) | |
Monoid a => Monoid (Dual a) | |
Num a => Monoid (Sum a) | |
Num a => Monoid (Product a) | |
Monoid (Last a) | |
Monoid (First a) | |
Monoid (Last' a) | |
Monoid (Condition a) | |
(Semigroup dir, Monoid dir) => Monoid (InstallDirs dir) | |
Ord a => Monoid (NubListR a) | |
Ord a => Monoid (NubList a) | Monoid operations on NubLists. For a valid Monoid instance we need to satistfy the required monoid laws; identity, associativity and closure. Identity : by inspection:
mempty Associativity : by inspection:
(NubList xs Closure : appending two lists of type a and removing duplicates obviously does not change the type. |
HasUnitId a => Monoid (PackageIndex a) | |
Monoid (Flag a) | |
Monoid b => Monoid (a -> b) | |
(Monoid a, Monoid b) => Monoid (a, b) | |
Ord k => Monoid (Map k v) | |
(Monoid a, Monoid b, Monoid c) => Monoid (a, b, c) | |
(Monoid a, Monoid b, Monoid c, Monoid d) => Monoid (a, b, c, d) | |
(Monoid a, Monoid b, Monoid c, Monoid d, Monoid e) => Monoid (a, b, c, d, e) |
newtype All
newtype Any
newtype Last' a
gmappend :: (Generic a, GSemigroup (Rep a)) => a -> a -> a