This commit is contained in:
Amy de Buitléir 2025-09-04 20:36:44 +01:00
parent a4af489bb3
commit f04f85f475

View file

@ -3,13 +3,11 @@
////
$ mkdir tempwork
$ cd tempwork
$ cp ../flake.nix Main.hs .
$ ls -lf
$ cp ../flake.nix ../Main.hs .
$ git add flake.nix
$ nix develop
$ git add flake.lock
$ git commit -a -m temp
$ ls -lf
////
Occasionally you might want to run a short Haskell program that depends on a Haskell library,
@ -34,7 +32,6 @@ include::Main.hs[]
Here's a demonstration using the program.
....
$ ls -lf
$# ../../../../../start-shell nix develop <<EOL
$ runghc Main.hs
$# EOL