laborantin-hs-0.1.5.2: an experiment management framework

Safe HaskellNone

Laborantin.Implementation

Synopsis

Documentation

type EnvIO = IOSource

Default monad for defaultBackend. EnvIO carries a DynEnv in a state and allows you to perform IO actions.

runEnvIO :: IO a -> IO aSource

Execute an EnvIO action in IO.

defaultBackend :: Backend EnvIOSource

Default backend for the EnvIO monad. This backend uses the filesystem as storage and UUIDs for scenario instances (supposes that UUID collision cannot happen).

Parameters, logfiles, and result data all are stored in a unique directory named .<scenario-name>uuid

Results are individual files in this directory. There is no namespacing hence avoid the following names: 'execution.json', 'execution-log.txt', and 'execution-log.xml'. These three files are the scenario execution metadata and logs.

defaultResult :: Execution m -> FilePath -> Result EnvIOSource

Default result handler for the EnvIO monad (see defaultBackend).

defaultLog :: Execution m -> LogHandler EnvIOSource

Default logger for the EnvIO monad (see defaultBackend).

liftIO :: MonadIO m => forall a. IO a -> m a

Lift a computation from the IO monad.