Hi Shea, > Have you looked into how we could make haskell closures smaller with > multiple outputs?
I briefly thought about it, but I haven't put any actual effort into the subject yet. It's clear that the first step has to be to multi-output'ify GHC. It's probably just a matter of figuring out the proper configure flags to make the compiler install libs, docs, and binaries into separate store paths. The boost expression [1] might be a good example of how to do that (i.e. how to create a "ghc" derivation that automatically propagates all other outputs for sake of convenience). Once we've split GHC into modules, it shouldn't be hard to modify the generic Haskell builder to do the same thing with the packages we compile. It would be great if you (or anyone else) can take a shot at this. My focus right now is to improve the cabal2nix/hackage2nix utilities, and that's gonna keep me occupied for the next 2-3 weeks. Best regards, Peter [1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/boost/generic.nix _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
