CurryInfo: benchmark-papers-3.0.0 / Test.Benchmark.withPrepare

definition:
 
withPrepare :: Benchmark a -> IO () -> Benchmark a
withPrepare (BM pre post bench) newpre = BM (newpre >> pre) post bench
demand:
 argument 1
deterministic:
 deterministic operation
documentation:
 
Adds some initial preparation action to a benchmark, e.g., to generate
benchmark data.
If the benchmark already contains some preparation, this new
preparation is executed first.
failfree:
 (_, _)
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {({BM},_) |-> {BM}}
name:
 withPrepare
precedence:
 no precedence defined
result-values:
 {BM}
signature:
 Benchmark a -> Prelude.IO () -> Benchmark a
solution-complete:
 operation might suspend on free variables
terminating:
 yes
totally-defined:
 reducible on all ground data terms