speculate-0.2.3: discovery of properties about Haskell functions

Safe HaskellNone
LanguageHaskell2010

Test.Speculate.SemiReason

Synopsis

Documentation

data Shy Source #

Constructors

Shy 

Fields

lesser :: Shy -> Expr -> [Expr] Source #

simplerThan :: Equation -> Shy -> Shy Source #

given a semi-equation (inequality), simplerThan restricts the Shy (SemiTheory) into only equations simpler than the given semi-equation or that are instances of simpler equations.

half-baked example:

x + 1 is simpler than x + y and it is returned. (1 + 1) + 1 is more complex than x + y but it is returned as well as it is an instance of x + 1.