10-haskell-effects
This example shows intermediate Haskell application structure with ReaderT and Except.
It includes:
- an environment record carried by
ReaderT, - an explicit domain error type carried by
Except, MonadReaderandMonadErrorconstraints on library functions, and- a test suite run by
nix flake check.
Useful commands:
nix develop
cabal run
cabal run -- haskell
cabal test
nix build
./result/bin/mini-effects haskell
nix run . -- haskell
nix flake check