Hoogle Search
Within LTS Haskell 22.23 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Eliminator functions for data types in Data.Monoid. All of these are re-exported from Data.Eliminator with the following exceptions:
- First and Last are not re-exported from Data.Eliminator, as they clash with eliminators of the same names in Data.Eliminator.Functor and Data.Eliminator.Semigroup.
- Sum and Product are not re-exported from Data.Eliminator, as they clash with eliminators of the same names in Data.Eliminator.Functor.
-
Bidirectional transforms for Data.Monoid.
-
loc Data.Loc.Internal.Prelude The class of monoids (types with an associative binary operation that has an identity). Instances should satisfy the following:
- Right identity x <> mempty = x
- Left identity mempty <> x = x
- Associativity x <> (y <> z) = (x <> y) <> z (Semigroup law)
- Concatenation mconcat = foldr (<>) mempty
- Unit mconcat (pure x) = x
- Multiplication mconcat (join xss) = mconcat (fmap mconcat xss)
- Subclass mconcat (toList xs) = sconcat xs
module Parameterized.Data.
Monoid No documentation available.
class Monoid m =>
MonoidNull mmonoid-subclasses Data.Monoid.Null Extension of Monoid that allows testing a value for equality with mempty. The following law must hold:
null x == (x == mempty)
Furthermore, the performance of this method should be constant, i.e., independent of the length of its argument.-
monoid-extras Data.Monoid.WithSemigroup For base < 4.11, the Monoid' constraint is a synonym for things which are instances of both Semigroup and Monoid. For base version 4.11 and onwards, Monoid has Semigroup as a superclass already, so for backwards compatibility Monoid' is provided as a synonym for Monoid.
class (Symmetric
Monoidal m u, Profunctor arr) => Monoidal m u arrlinear-base Data.Profunctor.Linear A (Monoidal m u arr) is a profunctor arr that can be sequenced with the bifunctor m. In rough terms, you can combine two function-like things to one function-like thing that holds both input and output types with the bifunctor m.
module Data.Bifunctor.
Monoidal No documentation available.
-
monoidal-functors Data.Bifunctor.Monoidal Given monoidal categories <math> and <math>. A bifunctor <math> is Monoidal if it maps between <math> and <math> while preserving their monoidal structure. Eg., a homomorphism of monoidal categories. See NCatlab for more details.
Laws
Right Unitality: <math>combine . grmap introduce ≡ bwd unitr . fwd unitr
Left Unitality: <math>combine . glmap introduce ≡ fmap (bwd unitl) . fwd unitl
-
No documentation available.