elynx-tools-0.6.1.0: Tools for ELynx
Copyright(c) 2021 Dominik Schrempf
LicenseGPL-3.0-or-later
Maintainerdominik.schrempf@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ELynx.Tools.ELynx

Description

Creation date: Thu Sep 2 18:55:11 2021.

Synopsis

Documentation

type ELynx a = ReaderT (Environment a) IO Source #

ELynx transformer to be used with all executables.

eLynxWrapper :: (Eq a, Show a, Reproducible a, Reproducible b, ToJSON a) => GlobalArguments -> b -> (b -> a) -> ELynx b () -> IO () Source #

The ReaderT wrapper for ELynx. Prints a header and a footer, logs to stdout and possibly a log file, if provided. Initializes the seed if none is provided.

out :: Reproducible a => String -> ByteString -> String -> ELynx a () Source #

Write a result with a given name to file with given extension or standard output. Supports compression.

outHandle :: Reproducible a => String -> String -> ELynx a Handle Source #

Get an output handle, does not support compression. The handle has to be closed after use!