Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This is just exporting action
, and liftToAction
is tough
to use because of the risk of circular imports.
Synopsis
- action :: Action -> ActionM ()
- liftToAction :: IO (Either TxGenError a) -> ActionM a
Documentation
action :: Action -> ActionM () Source #
action
has as its sole callers
runScript
from Cardano.Benchmark.Script
and Selftest
from
Cardano.Benchmark.Script.Selftest.
It translates the various cases of the Action
to monadic values
which execute the specified actions when evaluated. It passes all
the cases' fields to functions with very similar names to the
constructors.
liftToAction :: IO (Either TxGenError a) -> ActionM a Source #
liftToAction
first lifts from IO, then converts an Either
to an ExceptT
and then transforms
the error type to Error
.