The output of `haskell-packages/default.nix` at the moment looks something like this: ```haskell { nixpkgs ? import <nixpkgs> {} }: with nixpkgs; let ... in callPackage (nixpkgs.path + "/pkgs/development/haskell-modules") { ghc = pkgs.haskell.compiler.ghc843; buildHaskellPackages = buildPackages.haskell.packages.ghc843; ... } ``` It would be probably nicer if the compiler were another parameter. e.g.: ```haskell { nixpkgs ? import <nixpkgs> {}, compiler ? "ghc843" }: with nixpkgs; let ... in callPackage (nixpkgs.path + "/pkgs/development/haskell-modules") { ghc = pkgs.haskell.compiler.${compiler}; buildHaskellPackages = buildPackages.haskell.packages.${compiler}; ... } ``` That way one could more easily reuse the same expression with newer versions of nixpkgs, in particular one where only `ghc844` is available.
Activity