25 lines
410 B
Markdown
25 lines
410 B
Markdown
# 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:
|
|
|
|
```bash
|
|
nix develop
|
|
cabal run
|
|
cabal test
|
|
|
|
nix build
|
|
./result/bin/mini-haskell flakes
|
|
|
|
nix run . -- flakes
|
|
nix flake check
|
|
```
|