summaryrefslogtreecommitdiff
path: root/compiler/codeGen/StgCmmExtCode.hs
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2016-02-01 14:31:49 +0100
committerBen Gamari <ben@smart-cactus.org>2016-02-01 14:32:15 +0100
commit0d601657ca6ec1812492bb16a7d0e181b370e2d8 (patch)
tree8bd06a98672c26f1a3d5104fd5c610df1643a2ac /compiler/codeGen/StgCmmExtCode.hs
parente5a0a8903715b8717342dabeb72d69b4d5e61e5c (diff)
downloadhaskell-0d601657ca6ec1812492bb16a7d0e181b370e2d8.tar.gz
Simplify ghc-boot database representation with new type class.
Previously, we had an 'OriginalModule' type in ghc-boot which was basically identical to 'Module', and we had to do a bit of gyrating to get it converted into the right form. This commit introduces a new typeclass, 'DbModuleRep' which represents types which we know how to serialize to and from the (now renamed) 'DbModule' type. The upshot is that we can just store 'Module's DIRECTLY in the 'InstalledPackageInfo', no conversion needed. I took the opportunity to clean up ghc-pkg to make its use of the 'BinaryStringRep' classes more type safe. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1811
Diffstat (limited to 'compiler/codeGen/StgCmmExtCode.hs')
0 files changed, 0 insertions, 0 deletions