Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module defines the monoid transformer data type Concat
.
Documentation
is a transparent monoid transformer. The behaviour of the Concat
instances of monoid subclasses is
identical to the behaviour of their Concat
aa
instances, up to the pure
isomorphism.
The only purpose of Concat
then is to change the performance characteristics of various operations. Most
importantly, injecting a monoid into Concat
has the effect of making mappend
a constant-time operation. The
splitPrimePrefix
and splitPrimeSuffix
operations are amortized to constant time, provided that only one or the
other is used. Using both operations alternately will trigger the worst-case behaviour of O(n).
Functor Concat Source # | |
Applicative Concat Source # | |
Foldable Concat Source # | |
(Eq a, Monoid a) => Eq (Concat a) Source # | |
(Ord a, Monoid a) => Ord (Concat a) Source # | |
Show a => Show (Concat a) Source # | |
IsString a => IsString (Concat a) Source # | |
PositiveMonoid a => Monoid (Concat a) Source # | |
PositiveMonoid a => PositiveMonoid (Concat a) Source # | |
PositiveMonoid a => MonoidNull (Concat a) Source # | |
(FactorialMonoid a, PositiveMonoid a) => StableFactorialMonoid (Concat a) Source # | |
(FactorialMonoid a, PositiveMonoid a) => FactorialMonoid (Concat a) Source # | |
(RightGCDMonoid a, StableFactorialMonoid a) => RightGCDMonoid (Concat a) Source # | |
(LeftGCDMonoid a, StableFactorialMonoid a) => LeftGCDMonoid (Concat a) Source # | |
(RightReductiveMonoid a, StableFactorialMonoid a) => RightReductiveMonoid (Concat a) Source # | |
(LeftReductiveMonoid a, StableFactorialMonoid a) => LeftReductiveMonoid (Concat a) Source # | |
(Eq a, TextualMonoid a, StableFactorialMonoid a) => TextualMonoid (Concat a) Source # | |
concatenate :: PositiveMonoid a => Seq a -> Concat a Source #
Deprecated: Concat is not wrapping Seq any more, don't use concatenate nor extract.