2026-04-23 11:15:05 +02:00

410 B

05-haskell

This example shows a small Haskell project packaged with Nix flakes.

It includes:

  • a library module under src/,
  • an executable under app/,
  • a test suite under test/, and
  • a dev shell with GHC, cabal-install, and Haskell Language Server.

Useful commands:

nix develop
cabal run
cabal test

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

nix run . -- flakes
nix flake check