mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-01-10 15:52:36 +08:00
temp
This commit is contained in:
parent
a4af489bb3
commit
f04f85f475
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue