commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.95k stars 842 forks source link

Refactoring toward cabal #6614

Closed theobat closed 1 week ago

theobat commented 1 week ago

This is a first step for #6593, the changes in DumpPackage are not done here, because a first move was to bring some types closer to cabal, step by step. This includes 2 major changes :

The second change is also a refactoring towards better type safety and documentation. It should also increase overall stack's speed by two aspects : better memory layout with ShortText, and less translation work from cabal.

Indicative integration tests speed: 1185 ubuntu 951 macos 1491 windows So this corroborates a small speedup (compared to baseline https://github.com/commercialhaskell/stack/pull/6615)

mpilgrem commented 1 week ago

6615 is now merged, so this could be re-based on master. EDIT: I've done that.