constrained-generators-0.2.0.0: Framework for generating constrained random data using a subset of first order logic
Safe HaskellSafe-Inferred
LanguageHaskell2010

Constrained.Examples.CheatSheet

Synopsis

Documentation

Exception: Simplifying:

nestedSpecification BaseFn ((Int, Int), (Int, Int)) Source #

Exception: genFromPreds:

canFollowExampleSpecification BaseFn ((Int, Int), (Int, Int)) Source #

sumExampleSpecification BaseFn (Either Int Bool) Source #

sumExampleTwoSpecification BaseFn (Int, Either Int Bool) Source #

setExampleSpecification BaseFn (Set Int, Set Int, Set Int) Source #

forAllFollow0Specification BaseFn ((Int, Int), Set (Int, Int)) Source #

forAllFollowSpecification BaseFn ((Int, Int), Set (Int, Int)) Source #

existentialsSpecification BaseFn (Set Int, Set Int) Source #

data FooBarBaz Source #

Constructors

Foo Int Int 
Bar Bool 
Baz 

Instances

Instances details
Generic FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet

Associated Types

type Rep FooBarBaz ∷ Type → Type

Methods

fromFooBarBaz → Rep FooBarBaz x

to ∷ Rep FooBarBaz x → FooBarBaz

Show FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet

Methods

showsPrec ∷ Int → FooBarBaz → ShowS

showFooBarBaz → String

showList ∷ [FooBarBaz] → ShowS

HasSimpleRep FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet

Associated Types

type SimpleRep FooBarBaz Source #

type TheSop FooBarBaz ∷ [Type] Source #

Eq FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet

Methods

(==)FooBarBazFooBarBaz → Bool

(/=)FooBarBazFooBarBaz → Bool

BaseUniverse fn ⇒ HasSpec fn FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet

Associated Types

type TypeSpec fn FooBarBaz Source #

type Prerequisites fn FooBarBaz Source #

type Rep FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet

type Rep FooBarBaz = D1 ('MetaData "FooBarBaz" "Constrained.Examples.CheatSheet" "constrained-generators-0.2.0.0-inplace" 'False) (C1 ('MetaCons "Foo" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: (C1 ('MetaCons "Bar" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "Baz" 'PrefixI 'False) (U1 ∷ Type → Type)))
type SimpleRep FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet

type TheSop FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet

type Prerequisites fn FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet

type TypeSpec fn FooBarBaz Source # 
Instance details

Defined in Constrained.Examples.CheatSheet