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

507 B

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:

nix develop
cabal run
cabal run -- haskell
cabal test

nix build
./result/bin/mini-effects haskell

nix run . -- haskell
nix flake check