Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Size where
- seps ∷ [String] → String
- sepsP ∷ [String] → String
- sepn ∷ [String] → String
- runSize ∷ Int → Size → Bool
- atLeastDelta ∷ Int
- atMostAny ∷ Int
- genFromSize ∷ Size → Gen Int
- genFromIntRange ∷ Size → Gen Int
- genFromNonNegIntRange ∷ Size → Gen Int
- negateSize ∷ Size → Size
- mergeSize ∷ Size → Size → Size
Documentation
SzNever [String] | |
SzAny | |
SzLeast Int | |
SzMost Int | |
SzRng Int Int | Size is in the range from |
Instances
Monoid Size Source # | |
Semigroup Size Source # | |
Show Size Source # | |
LiftT Size Source # | |
Eq Size Source # | |
Ord Size Source # | |
Specification Size Int Source # | |
Defined in Test.Cardano.Ledger.Constrained.SpecClass type Generators Size Source # | |
type Count Size Source # | |
Defined in Test.Cardano.Ledger.Constrained.SpecClass | |
type Generators Size Source # | |
Defined in Test.Cardano.Ledger.Constrained.SpecClass | |
type Lenses Size Source # | |
Defined in Test.Cardano.Ledger.Constrained.SpecClass | |
type Reps Size Source # | |
Defined in Test.Cardano.Ledger.Constrained.SpecClass |
Used in tests so things don't get too large
Used in tests so things don't get too large If we can't find an era using things of size 10 using things of size 100, isn't going to help.
genFromSize ∷ Size → Gen Int Source #
Use to generate real sizes, where there are no negative numbers, and the smallest possible size is 0. Use this only where you know it is NOT SzNever
genFromIntRange ∷ Size → Gen Int Source #
Similar to genFromSize, but allows negative numbers (unlike size where the smallest Int is 0)
negateSize ∷ Size → Size Source #