summaryrefslogtreecommitdiff
path: root/libraries/ghc-boot-th
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-04-02 22:21:12 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-04-30 01:56:56 -0400
commit9e2c8e0e37a2709d5790d6c9a877a1463d6e88b5 (patch)
tree110a6a210b7482e1bb4cf6bac3289a6ec6b4ed0a /libraries/ghc-boot-th
parent69562e34fb5d9571e9efc1cb90c879e50129a510 (diff)
downloadhaskell-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 'libraries/ghc-boot-th')
0 files changed, 0 insertions, 0 deletions