Compiler Setup
This section provides instructions on how to set up the Elara compiler in your development environment.
The recommended workflow to build is with Nix, as this will ensure you have the correct versions of all dependencies and tools. If you don’t have / want Nix, you should be able to get away with a manually installed GHC 9.12.2 and Cabal
Building with Nix
- Run
nix buildto build - You should be able to access Elara the executable from
./result/bin/elara
Hacking with Nix
- Run
nix developto enter a shell with all dependencies - Use
just runto run in development mode (with an interpreter) - To run unit tests, run
just test
Building without Nix
- Run
cabal buildto build
Running without Nix
- Run
cabal runto run - Run
cabal testto run unit tests