- flake.nix - extensively commented code
- Prerequisites
- Haskell
-
Install Nix - see how.
-
In a new terminal, run a devshell from the
hs
dir. When prompted aboutextra-trusted-substituters
answery
. This is to use binary caches.cd hs nix develop
-
(Optionally) Edit the config.
-
Run the app.
set -a source .env cabal run
-
The fetched extensions will be in data.
-
(Optionally) Run
VSCodium
.nix run .#writeSettings nix run .#codium .
-
(Optionally) Open a
.hs
file and hover over a function. Wait until HLS gives the type info.
-
Run sample requests. Results will be printed to the
./tmp
dir.bash requests.sh
- [package.yaml] - used by
hpack
to generate a.cabal
- .markdownlint.jsonc - for
markdownlint
from the extensiondavidanson.vscode-markdownlint
- .ghcid - for ghcid
- .envrc - for direnv
- fourmolu.yaml - for fourmolu
- If
VSCodium
doesn't pick up the extensions, try to reboot your computer and startVSCodium
again. - See troubleshooting.