snowleopard / hadrian

Hadrian: a new build system for the Glasgow Haskell Compiler. Now merged into the GHC tree!
https://gitlab.haskell.org/ghc/ghc/tree/master/hadrian
MIT License
208 stars 37 forks source link

Reduce cost of rebuilding hadrian on change to UserSettings #471

Closed bgamari closed 5 years ago

bgamari commented 6 years ago

I suspect that we should do one of the following to reduce the cost of rebuilding Hadrian when UserSettings is changed,

In all cases the goal is to prevent GHC from giving unfoldings to the bindings in UserSettings, meaning that changes will only require a single-module rebuild and relink.

angerman commented 6 years ago

I think the usersettings should be a file read in by hadrian.

I’ve suggested YAML to @hvr ;-)

angerman commented 6 years ago

I should have thought of dhall, not sure why I keep forgetting its name.

angerman commented 6 years ago

Maybe @Gabriel439 has something to say in support or against using dhall for this?

bgamari commented 6 years ago

On November 16, 2017 9:50:37 PM EST, Moritz Angermann notifications@github.com wrote:

Maybe @Gabriel439 has something to say in support or against using dhall for this?

I think there would need to be a very good reason for us to accept a dependency for this.

Gabriella439 commented 6 years ago

I have no context here, but since I was cc:ed I'll derail the discussion by recommending Nix instead =P

See: https://github.com/Gabriel439/slides/blob/master/nix-derivation/slides.md

hvr commented 6 years ago

I’ve suggested YAML to @hvr ;-)

:angry: :rage: :anger: :boom: :skull_and_crossbones: ;-)

snowleopard commented 5 years ago

I believe this has been fixed.