24-haskell-deriving
This example shows intermediate Haskell deriving with stock and newtype strategies.
It includes:
deriving stockfor ordering, enumeration, and display,GeneralizedNewtypeDerivingfor numeric and semigroup behavior,- one release batch that merges and sorts targets through derived instances, and
- a test suite run by
nix flake check.
Useful commands:
nix develop
cabal run
cabal test
nix build
./result/bin/mini-deriving
nix run
nix flake check