Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Constrained.Examples.Basic
Synopsis
- leqPair ∷ Specification (Int, Int)
- simplePairSpec ∷ Specification (Int, Int)
- sizeAddOrSub1 ∷ Specification Integer
- sizeAddOrSub2 ∷ Specification Integer
- sizeAddOrSub3 ∷ Specification Integer
- sizeAddOrSub4 ∷ Specification Integer
- sizeAddOrSub5 ∷ Specification Integer
- listSubSize ∷ Specification [Int]
- orPair ∷ Specification (Int, Int)
- trickyCompositional ∷ Specification (Int, Int)
- data Foo
- fooSpec ∷ Specification Foo
- intSpec ∷ Specification (Int, Int)
- mapElemKeySpec ∷ Specification Int
- intRangeSpec ∷ Int → Specification Int
- testRewriteSpec ∷ Specification ((Int, Int), (Int, Int))
- pairSingletonSpec ∷ Specification (Int, Int)
- parallelLet ∷ Specification (Int, Int)
- letExists ∷ Specification (Int, Int)
- letExistsLet ∷ Specification (Int, Int)
- dependencyWeirdness ∷ Specification (Int, Int, Int)
- parallelLetPair ∷ Specification (Int, Int)
- existsUnfree ∷ Specification Int
- reifyYucky ∷ Specification (Int, Int, Int)
- basicSpec ∷ Specification Int
- canFollowLike ∷ Specification ((Int, Int), (Int, Int))
- ifElseBackwards ∷ Specification (Int, Int)
- assertReal ∷ Specification Int
- assertRealMultiple ∷ Specification (Int, Int)
- reifiesMultiple ∷ Specification (Int, Int, Int)
- data Three
- trueSpecUniform ∷ Specification Three
- three ∷ Specification Three
- three' ∷ Specification Three
- threeSpecific ∷ Specification Three
- threeSpecific' ∷ Specification Three
- posNegDistr ∷ Specification Int
- ifElseMany ∷ Specification (Bool, Int, Int)
- propBack ∷ Specification (Int, Int)
- propBack' ∷ Specification (Int, Int)
- propBack'' ∷ Specification (Int, Int)
- chooseBackwards ∷ Specification (Int, [Int])
- chooseBackwards' ∷ Specification ([(Int, [Int])], (Int, [Int]))
- whenTrueExists ∷ Specification Int
- wtfSpec ∷ Specification ([Int], Maybe ((), [Int]))
Documentation
leqPair ∷ Specification (Int, Int) Source #
simplePairSpec ∷ Specification (Int, Int) Source #
sizeAddOrSub1 ∷ Specification Integer Source #
sizeAddOrSub2 ∷ Specification Integer Source #
sizeAddOrSub3 ∷ Specification Integer Source #
sizeAddOrSub4 ∷ Specification Integer Source #
We expect a negative Integer, so ltSpec tests for that.
sizeAddOrSub5 ∷ Specification Integer Source #
listSubSize ∷ Specification [Int] Source #
orPair ∷ Specification (Int, Int) Source #
trickyCompositional ∷ Specification (Int, Int) Source #
Instances
Generic Foo Source # | |
Show Foo Source # | |
HasSpec Foo Source # | |
Defined in Constrained.Examples.Basic Methods emptySpec ∷ TypeSpec Foo Source # combineSpec ∷ TypeSpec Foo → TypeSpec Foo → Specification Foo Source # genFromTypeSpec ∷ ∀ (m ∷ Type → Type). (HasCallStack, MonadGenError m) ⇒ TypeSpec Foo → GenT m Foo Source # conformsTo ∷ Foo → TypeSpec Foo → Bool Source # shrinkWithTypeSpec ∷ TypeSpec Foo → Foo → [Foo] Source # toPreds ∷ Term Foo → TypeSpec Foo → Pred Source # cardinalTypeSpec ∷ TypeSpec Foo → Specification Integer Source # cardinalTrueSpec ∷ Specification Integer Source # typeSpecHasError ∷ TypeSpec Foo → Maybe (NonEmpty String) Source # alternateShow ∷ TypeSpec Foo → BinaryShow Source # monadConformsTo ∷ Foo → TypeSpec Foo → Writer [String] Bool Source # typeSpecOpt ∷ TypeSpec Foo → [Foo] → Specification Foo Source # guardTypeSpec ∷ [String] → TypeSpec Foo → Specification Foo Source # | |
HasSimpleRep Foo Source # | |
Eq Foo Source # | |
Ord 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 Prerequisites Foo Source # | |
Defined in Constrained.Examples.Basic | |
type TypeSpec Foo Source # | |
type SimpleRep Foo Source # | |
type TheSop Foo Source # | |
Defined in Constrained.Examples.Basic |
intSpec ∷ Specification (Int, Int) Source #
mapElemKeySpec ∷ Specification Int Source #
intRangeSpec ∷ Int → Specification Int Source #
testRewriteSpec ∷ Specification ((Int, Int), (Int, Int)) Source #
pairSingletonSpec ∷ Specification (Int, Int) Source #
parallelLet ∷ Specification (Int, Int) Source #
letExists ∷ Specification (Int, Int) Source #
letExistsLet ∷ Specification (Int, Int) Source #
dependencyWeirdness ∷ Specification (Int, Int, Int) Source #
parallelLetPair ∷ Specification (Int, Int) Source #
existsUnfree ∷ Specification Int Source #
reifyYucky ∷ Specification (Int, Int, Int) Source #
basicSpec ∷ Specification Int Source #
canFollowLike ∷ Specification ((Int, Int), (Int, Int)) Source #
ifElseBackwards ∷ Specification (Int, Int) Source #
assertReal ∷ Specification Int Source #
assertRealMultiple ∷ Specification (Int, Int) Source #
reifiesMultiple ∷ Specification (Int, Int, Int) Source #
Instances
posNegDistr ∷ Specification Int Source #
ifElseMany ∷ Specification (Bool, Int, Int) Source #
propBack ∷ Specification (Int, Int) Source #
propBack' ∷ Specification (Int, Int) Source #
propBack'' ∷ Specification (Int, Int) Source #
chooseBackwards ∷ Specification (Int, [Int]) Source #
chooseBackwards' ∷ Specification ([(Int, [Int])], (Int, [Int])) Source #
whenTrueExists ∷ Specification Int Source #
wtfSpec ∷ Specification ([Int], Maybe ((), [Int])) Source #