Flatr core is configured using the Dhall language.
The default search path is ./config.dhall
but it can also explicitly specified as the first argument:
$ flatr-core config.dhall
There is an example configuration file at example.dhall
.
$ nix-env -i cabal-install
$ nix-build
Launch the nix shell
$ ./result/bin/Flatr-App-Core-exe
Either launch it yourself with $ nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-17.09.tar.gz
or install direnv
and allow it do be active in the directory direnv allow
.
Install stack with your package manager
$ stack setup --install-ghc
$ # install system dependencies like e.g zlib
$ stack build --fast --pedantic
$ stack exec Flatr-App-Core-exe
$ stack build --ghc-options='-optl-static -optl-pthread' --force-dirty