Skip to content
  • Sylvain Henry's avatar
    Refactor UnitInfo load/store from databases · 9e2c8e0e
    Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
    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.
    9e2c8e0e