git.iko.soy/typeable/servant
on master help sign in
41 lines 834 B history raw
1You can use the `shell.nix` from this directory
2to build the servant packages or even the tutorial
3or cookbook if you want to, optionally.
5Just the servant packages:
7``` sh
8$ nix-shell nix/shell.nix
9```
11Everything needed for the tutorial and the
12cookbook too:
14``` sh
15$ nix-shell nix/shell.nix --arg tutorial true
16```
18The `shell.nix` file also supports specifying
19a particular ghc version, e.g:
21``` sh
22$ nix-shell nix/shell.nix --argstr compiler ghcHEAD
23```
25**Possible GHC versions**
26- `ghc865Binary`
27- `ghc884`
28- `ghc8104` - default
29- `ghc901`
31### Cabal users
33GHC version can be chosen via the nix-shell parameter
35`cabal build all`
37### Stack version
39Since the ghc version is set by the LTS version, it is preferable to use the `ghc8104` version parameter for the nix-shell.
41`stack --no-nix --system-ghc <command>`