Editor setup:
Install in your editor any required editorconfig extension so that we will have consistent coding style practices.
Environment setup:
- Follow Instructions for setting up Haskell Editors / IDE
- 💯 VERY IMPORTANT - Configure Nix to use the binary caches for this project
- Install the nix package
cachix
- Run:
sudo cachix use fairy-tale-agi-solutions
and follow the instructions
- Install the nix package
- ⛔ OPTIONAL - Install ONLY if you know what you are doing:
Project setup:
- Run
./setup
to setup the project - Run
nix-shell
and in it run./hes
to start the application
- Download the NWJS Windows 64-bit SDK from https://nwjs.io/downloads/
- Extract the above archive
- Add to your system environment PATH variable the archive folder containing
nw.exe
- Install Chocolatey: https://chocolatey.org/install
- Install GHC 8.6.5 with Chocolatey:
choco install ghc --version=8.6.5
- Install Cabal 3.0.0.0 using Chocolatey:
choco install cabal --version=3.0.0.0
- Double check that you have
cabal 3.0.0.0
installed usingcabal --version
- Run
cabal run
to build and run the project
- Following steps are not required if you are patient enough for the editor to do the bellow for you on start
- Run
hie
in the project root, it will installcabal 3.0.0.0
and then error out (this is fine) - Open the project using you favorite HIE powered editor and everything should just work