@@ -14,23 +14,6 @@
1414 # complier as needed.
1515 ghc = pkgs.haskell.compiler.${plan.compiler.nix-name};
1616
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.
19−
20− # weakCallPackage: call a function or (importable expression)
21− # with scope + args.
22− #
23− # weakCallPackage scope f args
24− # will call f (scope // args)
25− #
26− # weakCallpackage scope ./path args
27− # will call the expression at ./path with (scope // args)
28− #
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');
33−
3417 # this is *not* the hasekllLib from nixpkgs; it is rather our own
3518 # library from haskell.nix
3619 haskellLib = import ./lib { inherit lib haskellLib; };