@@ -14,23 +14,6 @@
14 # complier as needed.
14 # complier as needed.
15 ghc = pkgs.haskell.compiler.${plan.compiler.nix-name};
15 ghc = pkgs.haskell.compiler.${plan.compiler.nix-name};
17− # Avoid pkgs.callPackage for now. It does a lot of nonsense with OOP
18− # style programming that we should avoid until we know we want it.
20− # weakCallPackage: call a function or (importable expression)
23− # weakCallPackage scope f args
24− # will call f (scope // args)
26− # weakCallpackage scope ./path args
27− # will call the expression at ./path with (scope // args)
29− weakCallPackage = scope: f: args:
30− let f' = if lib.isFunction f then f else import f;
31− args' = scope // args;
32− in f' (builtins.intersectAttrs (builtins.functionArgs f') args');
34 # this is *not* the hasekllLib from nixpkgs; it is rather our own
17 # this is *not* the hasekllLib from nixpkgs; it is rather our own
35 # library from haskell.nix
18 # library from haskell.nix
36 haskellLib = import ./lib { inherit lib haskellLib; };
19 haskellLib = import ./lib { inherit lib haskellLib; };