diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-04-02 22:21:12 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-30 01:56:56 -0400 |
commit | 9e2c8e0e37a2709d5790d6c9a877a1463d6e88b5 (patch) | |
tree | 110a6a210b7482e1bb4cf6bac3289a6ec6b4ed0a /ghc/GHCi/UI.hs | |
parent | 69562e34fb5d9571e9efc1cb90c879e50129a510 (diff) | |
download | haskell-9e2c8e0e37a2709d5790d6c9a877a1463d6e88b5.tar.gz |
Refactor UnitInfo load/store from databases
Converting between UnitInfo stored in package databases and UnitInfo as
they are used in ghc-pkg and ghc was done in a very convoluted way (via
BinaryStringRep and DbUnitModuleRep type classes using fun deps, etc.).
It was difficult to understand and even more to modify (I wanted to
try to use a GADT for UnitId but fun deps got in the way).
The new code uses much more straightforward functions to convert between
the different representations. Much simpler.
Diffstat (limited to 'ghc/GHCi/UI.hs')
0 files changed, 0 insertions, 0 deletions