Total ordering.
gen a ought to generate values b satisfying a fairly often.rel b
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulecheckers-0.6.0Haskell2010
Some QuickCheck properties for standard type classes
Total ordering.
gen a ought to generate values b satisfying a fairly often.rel b
Ord laws.
gen a ought to generate values b satisfying a fairly often.rel b
The semantic function (model) for a is an ordMorphism.
Properties to check that the Semigroup a satisfies the semigroup
properties. The argument value is ignored and is present only for its
type.
Properties to check that the Monoid a satisfies the monoid
properties. The argument value is ignored and is present only for its
type.
Monoid homomorphism properties. See also homomorphism.
The semantic function (model) for a is a monoidMorphism.
Properties to check that the Functor m satisfies the functor
properties.
Functor morphism (natural transformation) properties
The semantic function (model1) for f is a functorMorphism.
Properties to check that the Apply m satisfies the apply
properties
Apply morphism properties
The semantic function (model1) for f is an applyMorphism.
Properties to check that the Applicative m satisfies the applicative
properties
Applicative morphism properties
The semantic function (model1) for f is an applicativeMorphism.
Properties to check that the bind m satisfies the bind properties
bind morphism properties
The semantic function (model1) for f is a bindMorphism.
Properties to check that the Monad m satisfies the monad properties
Monad morphism properties
Applicative morphism properties
The semantic function (model1) for f is a monadMorphism.
Law for monads that are also instances of Functor.
Note that instances that satisfy applicative and monad are implied to satisfy this property too.
Note that monad also contains these properties.
Laws for MonadPlus instances with left distribution.
Laws for MonadPlus instances with left catch.
Check Alt Semigroup law
Check Alternative Monoid laws