add devShell for haskell

This commit is contained in:
Adithya 2023-12-08 14:11:16 +05:30
parent 967dd5a69c
commit 3f35767016
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 14 additions and 0 deletions

View file

@ -14,3 +14,8 @@ This repo contains a bunch of handy dev shells that can used on any system that
- can be activated with `nix develop github:adtya/devshell#python`
- can also be activated with direnv by adding `use flake github:adtya/devshell#python` to `.envrc`
- additionally, adding `layout pipenv` to `.envrc` will also activate the pipenv shell based on Pipfile and Pipfile.lock
### Haskell
- makes `ghc`, `haskell-language-server`, `cabal` and `stack` available in path
- can be activated with `nix develop github:adtya/devshell#haskell`
- can also be activated with direnv by adding `use flake github:adtya/devshell#haskell` to `.envrc`

View file

@ -16,6 +16,7 @@
devShells = {
go = import ./go.nix { inherit pkgs; };
python = import ./python.nix { inherit pkgs; };
haskell = import ./haskell.nix { inherit pkgs; };
};
}
);

8
haskell.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs }: pkgs.mkShell {
packages = with pkgs.haskellPackages; [
ghc
haskell-language-server
cabal-install
stack
];
}