sutori-0.2.4: Sutori language compiler
Sutori.Monad.Monad
Description
Synopsis
type SutMonad a = ReaderT Options (StateT SutState (WriterT SutLogger (Except (SutError, SutLog)))) a Source #
The Sutori monad. Composes state, logging and exception handling
runSutMonad :: SutMonad a -> Options -> SutState -> Except (SutError, SutLog) ((a, SutState), SutLogger) Source #
Run the monad with a given action