Added README section about Nix

This commit is contained in:
Rakarake 2023-04-06 14:12:45 +02:00 committed by GitHub
parent 90352449f4
commit e7cd3b2c3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,10 @@ Churf can then be built using `cabal install`
Using the tool [make](https://www.gnu.org/software/make/) the entire thing can be built by running `make`
or using [just](https://github.com/casey/just), `just build`
# Dependencies
If you have Nix installed, simply run `nix-shell --pure shell.nix` to get into an environment
with the right versions of packages. Then run `make` and the compiler should build.
# Compiling a program
Using the Hindley-Milner type checker: `./language -t hm example.crf`