2026-04-22 11:45:09 +02:00

26 lines
507 B
Markdown

# 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`,
- `MonadReader` and `MonadError` constraints on library functions, and
- a test suite run by `nix flake check`.
Useful commands:
```bash
nix develop
cabal run
cabal run -- haskell
cabal test
nix build
./result/bin/mini-effects haskell
nix run . -- haskell
nix flake check
```