{ nixpkgs ? import {}, compiler ? "default" }: let inherit (nixpkgs) pkgs; f = { mkDerivation, base, checkers, comonad, lens, QuickCheck , stdenv }: mkDerivation { pname = "non-empty-zipper"; version = "0.1.0.0"; src = ./.; libraryHaskellDepends = [ base comonad lens ]; testHaskellDepends = [ base checkers comonad lens QuickCheck ]; license = stdenv.lib.licenses.bsd3; }; haskellPackages = if compiler == "default" then pkgs.haskellPackages else pkgs.haskell.packages.${compiler}; drv = haskellPackages.callPackage f {}; in if pkgs.lib.inNixShell then drv.env else drv