Hoogle Search
Within LTS Haskell 24.66 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
numhask NumHask.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
WrapMonoid :: m -> WrappedMonoid mnumhask NumHask.Prelude No documentation available.
-
numhask NumHask.Prelude Provide a Semigroup for an arbitrary Monoid. NOTE: This is not needed anymore since Semigroup became a superclass of Monoid in base-4.11 and this newtype be deprecated at some point in the future.
stimesIdempotent :: Integral b => b -> a -> anumhask NumHask.Prelude This is a valid definition of stimes for an idempotent Semigroup. When x <> x = x, this definition should be preferred, because it works in <math> rather than <math>.
stimesIdempotentMonoid :: (Integral b, Monoid a) => b -> a -> anumhask NumHask.Prelude This is a valid definition of stimes for an idempotent Monoid. When x <> x = x, this definition should be preferred, because it works in <math> rather than <math>
stimesMonoid :: (Integral b, Monoid a) => b -> a -> anumhask NumHask.Prelude This is a valid definition of stimes for a Monoid. Unlike the default definition of stimes, it is defined for 0 and so it should be preferred where possible.
unwrapMonoid :: WrappedMonoid m -> mnumhask NumHask.Prelude No documentation available.
type
ValidIx (n :: Nat) (ctx :: Ctx k) = CheckIx ctx n n + 1 <=? CtxSize ctxparameterized-utils Data.Parameterized.Context A constraint that checks that the nat n is a valid index into the context ctx, and raises a type error if not.
type
ValidIx (n :: Nat) (ctx :: Ctx k) = CheckIx ctx n n + 1 <=? CtxSize ctxparameterized-utils Data.Parameterized.Ctx A constraint that checks that the nat n is a valid index into the context ctx, and raises a type error if not.
module Data.Parameterized.
DecidableEq This defines a class DecidableEq, which represents decidable equality on a type family. This is different from GHC's TestEquality in that it provides evidence of non-equality. In fact, it is a superclass of TestEquality.