Merge pull request #1 from bachelor-group-66-systemf/dev-env

Update dev enviroment
This commit is contained in:
Samuel Hammersberg 2023-01-18 10:56:57 +00:00 committed by GitHub
commit bd845f023d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View file

@ -68,10 +68,10 @@ executable language
-- other-extensions: -- other-extensions:
-- Other library packages from which modules are imported. -- Other library packages from which modules are imported.
build-depends: base ^>=4.17.0.0 build-depends: base ^>=4.16.3.0
-- Directories containing source files. -- Directories containing source files.
hs-source-dirs: app hs-source-dirs: src
-- Base language which the package is written in. -- Base language which the package is written in.
default-language: GHC2021 default-language: GHC2021

14
shell.nix Normal file
View file

@ -0,0 +1,14 @@
let
pkgs = import <nixpkgs> { }; # pin the channel to ensure reproducibility!
in
pkgs.haskellPackages.developPackage {
root = ./.;
withHoogle = true;
modifier = drv:
pkgs.haskell.lib.addBuildTools drv (
(with pkgs; [ hlint haskell-language-server ghc ])
++
(with pkgs.haskellPackages; [ cabal-install stylish-haskell ])
);
}