Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- leqPair ∷ Specification BaseFn (Int, Int)
- simplePairSpec ∷ Specification BaseFn (Int, Int)
- sizeAddOrSub1 ∷ Specification BaseFn Integer
- sizeAddOrSub2 ∷ Specification BaseFn Integer
- sizeAddOrSub3 ∷ Specification BaseFn Integer
- sizeAddOrSub4 ∷ Specification BaseFn Integer
- sizeAddOrSub5 ∷ Specification BaseFn Integer
- listSubSize ∷ Specification BaseFn [Int]
- orPair ∷ Specification BaseFn (Int, Int)
- trickyCompositional ∷ Specification BaseFn (Int, Int)
- data Foo
- fooSpec ∷ Specification BaseFn Foo
- intSpec ∷ Specification BaseFn (Int, Int)
- mapElemKeySpec ∷ Specification BaseFn Int
- intRangeSpec ∷ Int → Specification BaseFn Int
- testRewriteSpec ∷ Specification BaseFn ((Int, Int), (Int, Int))
- pairSingletonSpec ∷ Specification BaseFn (Int, Int)
- parallelLet ∷ Specification BaseFn (Int, Int)
- letExists ∷ Specification BaseFn (Int, Int)
- letExistsLet ∷ Specification BaseFn (Int, Int)
- dependencyWeirdness ∷ Specification BaseFn (Int, Int, Int)
- parallelLetPair ∷ Specification BaseFn (Int, Int)
- existsUnfree ∷ Specification BaseFn Int
- reifyYucky ∷ Specification BaseFn (Int, Int, Int)
- basicSpec ∷ Specification BaseFn Int
- canFollowLike ∷ Specification BaseFn ((Int, Int), (Int, Int))
- ifElseBackwards ∷ Specification BaseFn (Int, Int)
- assertReal ∷ Specification BaseFn Int
- assertRealMultiple ∷ Specification BaseFn (Int, Int)
- reifiesMultiple ∷ Specification BaseFn (Int, Int, Int)
- data Three
- trueSpecUniform ∷ Specification BaseFn Three
- three ∷ Specification BaseFn Three
- three' ∷ Specification BaseFn Three
- threeSpecific ∷ Specification BaseFn Three
- threeSpecific' ∷ Specification BaseFn Three
- posNegDistr ∷ Specification BaseFn Int
- ifElseMany ∷ Specification BaseFn (Bool, Int, Int)
- propBack ∷ Specification BaseFn (Int, Int)
- propBack' ∷ Specification BaseFn (Int, Int)
- propBack'' ∷ Specification BaseFn (Int, Int)
- chooseBackwards ∷ Specification BaseFn (Int, [Int])
- chooseBackwards' ∷ Specification BaseFn ([(Int, [Int])], (Int, [Int]))
- whenTrueExists ∷ Specification BaseFn Int
- wtfSpec ∷ Specification BaseFn ([Int], Maybe ((), [Int]))
Documentation
leqPair ∷ Specification BaseFn (Int, Int) Source #
simplePairSpec ∷ Specification BaseFn (Int, Int) Source #
sizeAddOrSub1 ∷ Specification BaseFn Integer Source #
sizeAddOrSub2 ∷ Specification BaseFn Integer Source #
sizeAddOrSub3 ∷ Specification BaseFn Integer Source #
sizeAddOrSub4 ∷ Specification BaseFn Integer Source #
We expect a negative Integer, so ltSpec tests for that.
sizeAddOrSub5 ∷ Specification BaseFn Integer Source #
listSubSize ∷ Specification BaseFn [Int] Source #
orPair ∷ Specification BaseFn (Int, Int) Source #
trickyCompositional ∷ Specification BaseFn (Int, Int) Source #
Instances
Generic Foo Source # | |
Show Foo Source # | |
HasSimpleRep Foo Source # | |
Eq Foo Source # | |
Ord Foo Source # | |
BaseUniverse fn ⇒ HasSpec fn Foo Source # | |
Defined in Constrained.Examples.Basic emptySpec ∷ TypeSpec fn Foo Source # combineSpec ∷ TypeSpec fn Foo → TypeSpec fn Foo → Specification fn Foo Source # genFromTypeSpec ∷ ∀ (m ∷ Type → Type). (HasCallStack, MonadGenError m) ⇒ TypeSpec fn Foo → GenT m Foo Source # conformsTo ∷ Foo → TypeSpec fn Foo → Bool Source # shrinkWithTypeSpec ∷ TypeSpec fn Foo → Foo → [Foo] Source # toPreds ∷ Term fn Foo → TypeSpec fn Foo → Pred fn Source # cardinalTypeSpec ∷ TypeSpec fn Foo → Specification fn Integer Source # cardinalTrueSpec ∷ Specification fn Integer Source # typeSpecHasError ∷ TypeSpec fn Foo → Maybe (NonEmpty String) Source # alternateShow ∷ TypeSpec fn Foo → BinaryShow Source # monadConformsTo ∷ Foo → TypeSpec fn Foo → Writer [String] Bool Source # typeSpecOpt ∷ TypeSpec fn Foo → [Foo] → Specification fn Foo Source # guardTypeSpec ∷ [String] → TypeSpec fn Foo → Specification fn Foo Source # prerequisites ∷ Evidence (Prerequisites fn Foo) Source # | |
type Rep Foo Source # | |
Defined in Constrained.Examples.Basic type Rep Foo = D1 ('MetaData "Foo" "Constrained.Examples.Basic" "constrained-generators-0.2.0.0-inplace" 'False) (C1 ('MetaCons "Foo" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: C1 ('MetaCons "Bar" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) | |
type SimpleRep Foo Source # | |
type TheSop Foo Source # | |
Defined in Constrained.Examples.Basic | |
type Prerequisites fn Foo Source # | |
Defined in Constrained.Examples.Basic | |
type TypeSpec fn Foo Source # | |
intSpec ∷ Specification BaseFn (Int, Int) Source #
mapElemKeySpec ∷ Specification BaseFn Int Source #
intRangeSpec ∷ Int → Specification BaseFn Int Source #
testRewriteSpec ∷ Specification BaseFn ((Int, Int), (Int, Int)) Source #
pairSingletonSpec ∷ Specification BaseFn (Int, Int) Source #
parallelLet ∷ Specification BaseFn (Int, Int) Source #
letExists ∷ Specification BaseFn (Int, Int) Source #
letExistsLet ∷ Specification BaseFn (Int, Int) Source #
dependencyWeirdness ∷ Specification BaseFn (Int, Int, Int) Source #
parallelLetPair ∷ Specification BaseFn (Int, Int) Source #
existsUnfree ∷ Specification BaseFn Int Source #
reifyYucky ∷ Specification BaseFn (Int, Int, Int) Source #
basicSpec ∷ Specification BaseFn Int Source #
canFollowLike ∷ Specification BaseFn ((Int, Int), (Int, Int)) Source #
ifElseBackwards ∷ Specification BaseFn (Int, Int) Source #
assertReal ∷ Specification BaseFn Int Source #
assertRealMultiple ∷ Specification BaseFn (Int, Int) Source #
reifiesMultiple ∷ Specification BaseFn (Int, Int, Int) Source #
Instances
posNegDistr ∷ Specification BaseFn Int Source #
ifElseMany ∷ Specification BaseFn (Bool, Int, Int) Source #
propBack ∷ Specification BaseFn (Int, Int) Source #
propBack' ∷ Specification BaseFn (Int, Int) Source #
propBack'' ∷ Specification BaseFn (Int, Int) Source #
chooseBackwards ∷ Specification BaseFn (Int, [Int]) Source #
chooseBackwards' ∷ Specification BaseFn ([(Int, [Int])], (Int, [Int])) Source #
whenTrueExists ∷ Specification BaseFn Int Source #
wtfSpec ∷ Specification BaseFn ([Int], Maybe ((), [Int])) Source #