Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
This module contains custom app specific mtl style effects for hevm
These are written in the style of the ReaderT over IO pattern [1].
Right now we only have a single ReadConfig
effect, but over time hope to
migrate most usages of IO into custom effects here.
This framework would allow us to have multiple interpretations for effects (e.g. a pure version for tests), but for now we interpret everything in IO only.
Documentation
class Monad m => ReadConfig m where Source #
readConfig :: m Config Source #
Instances
Monad m => ReadConfig (ReaderT Env m) Source # | |
Defined in EVM.Effects |
Config | |
|
defaultEnv :: Env Source #
type App m = (MonadUnliftIO m, ReadConfig m, TTY m) Source #