summaryrefslogtreecommitdiff
path: root/utils/ghc-pkg/Main.hs
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2014-11-17 22:30:35 -0800
committerEdward Z. Yang <ezyang@cs.stanford.edu>2014-11-26 16:51:30 -0800
commitb19845db926632c4be7b1e52fe2aa01d26ac3af3 (patch)
tree1cc3eee96471998fbd98ad7ac3fd55a6f0f6017c /utils/ghc-pkg/Main.hs
parent4897e7056e7b34c42ba5c0b1fa28ea547b8085b3 (diff)
downloadhaskell-b19845db926632c4be7b1e52fe2aa01d26ac3af3.tar.gz
Cabal submodule update: hole support and tests.
Depends on D485 Summary: Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, austin Subscribers: thomie, carter Differential Revision: https://phabricator.haskell.org/D487
Diffstat (limited to 'utils/ghc-pkg/Main.hs')
-rw-r--r--utils/ghc-pkg/Main.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index 2b0b4ccf66..0493866e32 100644
--- a/utils/ghc-pkg/Main.hs
+++ b/utils/ghc-pkg/Main.hs
@@ -1023,6 +1023,7 @@ convertPackageInfoToCacheFormat pkg =
GhcPkg.haddockHTMLs = haddockHTMLs pkg,
GhcPkg.exposedModules = map convertExposed (exposedModules pkg),
GhcPkg.hiddenModules = hiddenModules pkg,
+ GhcPkg.instantiatedWith = map convertInst (instantiatedWith pkg),
GhcPkg.exposed = exposed pkg,
GhcPkg.trusted = trusted pkg
}
@@ -1031,6 +1032,7 @@ convertPackageInfoToCacheFormat pkg =
(fmap convertOriginal sig)
convertOriginal (OriginalModule ipid m) =
GhcPkg.OriginalModule (display ipid) m
+ convertInst (m, o) = (m, convertOriginal o)
instance GhcPkg.BinaryStringRep ModuleName where
fromStringRep = ModuleName.fromString . fromUTF8 . BS.unpack