Skip to content

Instantly share code, notes, and snippets.

@dysinger
Created July 12, 2019 00:57
Show Gist options
  • Save dysinger/00a7577981a1052221c4334883c2b7bd to your computer and use it in GitHub Desktop.
Save dysinger/00a7577981a1052221c4334883c2b7bd to your computer and use it in GitHub Desktop.
Haskell/Stack/Intero/Nix Env
{ ghcVersion ? "ghc865", pkgs ? import ./nix { inherit ghcVersion; } }:
with pkgs;
haskellPackages.shellFor {
packages = ps: with ps; [
# ADD THIS LOCAL PROJECT'S ENVIRONMENT TO OUR SHELL
interact
];
# ADD HOOGLE & INDEX ALL HASKELL PACKAGES
withHoogle = true;
# ADD ALL THE OTHER GOOD HASKELL DEV TOOLS
nativeBuildInputs = with haskellPackages; [
cabal-install
cabal2nix
ghcid
hindent
hlint
hpack
intero
pointfree
stack
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment