aivika-experiment-5.3: Simulation experiments for the Aivika library

Copyright Copyright (c) 2012-2017 David Sorokin BSD3 David Sorokin experimental Safe Haskell98

Simulation.Aivika.Experiment.Base.ExperimentWriter

Description

Tested with: GHC 8.0.1

It defines the Exp monad that allows providing computation with an ability to resolve file paths.

Synopsis

# Documentation

Defines an IO derived computation whithin which we can resolve the unique file paths.

Instances

 Source # Methods(>>=) :: ExperimentWriter a -> (a -> ExperimentWriter b) -> ExperimentWriter b #return :: a -> ExperimentWriter a # Source # Methodsfmap :: (a -> b) -> ExperimentWriter a -> ExperimentWriter b #(<\$) :: a -> ExperimentWriter b -> ExperimentWriter a # Source # Methodspure :: a -> ExperimentWriter a #(<*>) :: ExperimentWriter (a -> b) -> ExperimentWriter a -> ExperimentWriter b # Source # MethodscatchComp :: Exception e => ExperimentWriter a -> (e -> ExperimentWriter a) -> ExperimentWriter a #throwComp :: Exception e => e -> ExperimentWriter a # Source # MethodsliftIO :: IO a -> ExperimentWriter a #

Run the ExperimentWriter computation.

Specifies the file name, unique or writable, which can be appended with extension if required.

Constructors

 WritableFilePath FilePath The file which is overwritten in case if it existed before. UniqueFilePath FilePath The file which is always unique, when an automatically generated suffix is added to the name in case of need.

The default experiment file path.

Resolve the file path relative to the specified directory passed in the first argument and taking into account a possible requirement to have an unique file name.

Expand the file path using the specified table of substitutions.

Transform the file path using the specified function.