ideas-math-types-1.1: Common types for mathematical domain reasoners

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellNone
LanguageHaskell2010

Domain.Algebra.Law

Description

 

Documentation

data Law a Source #

Instances
Show (Law a) Source # 
Instance details

Defined in Domain.Algebra.Law

Methods

showsPrec :: Int -> Law a -> ShowS #

show :: Law a -> String #

showList :: [Law a] -> ShowS #

(Show a, Eq a, Arbitrary a) => Testable (Law a) Source # 
Instance details

Defined in Domain.Algebra.Law

Methods

property :: Law a -> Property #

data LawSpec a Source #

Constructors

a :==: a infix 1 
Instances
(Arbitrary a, IsTerm a, Show a, Different a) => RuleBuilder (LawSpec a) a Source # 
Instance details

Defined in Domain.Algebra.Law

law :: LawBuilder l a => String -> l -> Law a Source #

lawAbs :: (Different b, Arbitrary b, Show b) => (b -> LawSpec a) -> LawSpec a Source #

mapLaw :: (b -> a) -> (a -> b) -> Law a -> Law b Source #

propertyLaw :: (Arbitrary a, Show a, Testable b) => (a -> a -> b) -> Law a -> Property Source #