StateT, ReaderT, ExceptT usage examples
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
ChangeLog.md
LICENSE
README.md
Setup.hs
default.nix
monadtransformers-example.cabal
monadtransformers-example.nix

README.md

monadtransformers-example

StateT, ReaderT, and ExceptT usage example

Primarily for the following pattern: Env -> State -> IO (Either Error a)

Running the example

# Get Nix (if you haven't already)
curl https://nixos.org/nix/install | sh

nix-shell

# For GHCI
cabal v2-repl

# To run project
cabal v2-run monadtransformers-example