2026-04-21 14:19:00 +02:00

503 B

07-haskell-deps

This example shows a small Haskell project that uses external libraries from the package set.

It includes:

  • a library that parses JSON with aeson,
  • text and bytestring usage in the library and CLI,
  • an executable under app/, and
  • a test suite run by nix flake check.

Useful commands:

nix develop
cabal run
cabal run -- '{"name":"flakes"}'
cabal test

nix build
./result/bin/mini-json '{"name":"flakes"}'

nix run . -- '{"name":"flakes"}'
nix flake check