Add a Nix shell file and instruct Stack to use shell provided GHC

This commit is contained in:
Mathieu Boespflug 2019-12-29 21:18:21 +01:00
parent 996fe7c235
commit 5619c8a7c4
3 changed files with 16 additions and 0 deletions

1
nixpkgs.nix Normal file
View File

@ -0,0 +1 @@
import (fetchTarball "https://github.com/nixos/nixpkgs/archive/b41e2cf0c47e82fb851bc21e97551fc46186747b.tar.gz")

11
shell.nix Normal file
View File

@ -0,0 +1,11 @@
{pkgs ? import ./nixpkgs.nix {}}:
with pkgs;
mkShell {
LANG="C.UTF-8";
buildInputs = [
ghc
stack
];
}

View File

@ -1,3 +1,7 @@
resolver: lts-14.19
packages:
- '.'
system-ghc: true
nix:
enable: false