Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Code which defines a class that encapsulates what it means to be a Spec Eventually this will repace the most of the tests in Spec.hs
Documentation
class (Monoid spec, LiftT spec) ⇒ Specification spec t | spec → t where Source #
runS ∷ t → spec → Bool Source #
genS ∷ [String] → Count spec → Generators spec → Reps spec → Lenses spec → Gen spec Source #
sizeForS ∷ spec → Size Source #
genFromS ∷ [String] → Int → Generators spec → spec → Gen t Source #
Instances
testSound ∷ ∀ spec t. Specification spec t ⇒ Lenses spec → Reps spec → Count spec → Generators spec → Gen Bool Source #