CurryInfo: easycheck-3.2.0 / Test.EasyCheck.classify

definition: Info
 
classify :: Bool -> String -> Prop -> Prop
classify True  name = label name
classify False _    = id
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Assign a label to a property if the first argument is `True`.
All labeled tests are counted and shown at the end.
Hence, this combinator can be used to classify tests:

    multIsComm x y = classify (x<0 || y<0) "Negative" $ x*y -=- y*x
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({True},_) |-> {label} || ({False},_) |-> {id}}
name: Info
 classify
precedence: Info
 no precedence defined
result-values: Info
 {id,label}
signature: Info
 Prelude.Bool -> String -> Test.Prop.Types.Prop -> Test.Prop.Types.Prop
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms