1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-30 02:14:01 +03:00
applied-fp-course/level07/shell.nix
Sean Chalmers 2280b394c9 Updated README / Added Level07
Level 07 contains the addition of the ExceptT transformer for error handling in
the existing AppM from Level 06. Extends teh AppM to the DB layer.

Updated README with status
2017-08-17 16:48:54 +10:00

14 lines
350 B
Nix

{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:
let
inherit (nixpkgs) pkgs;
haskellPackages = if compiler == "default"
then pkgs.haskellPackages
else pkgs.haskell.packages.${compiler};
drv = haskellPackages.callPackage ./default.nix {};
in
if pkgs.lib.inNixShell then drv.env else drv