summaryrefslogtreecommitdiff
path: root/libraries/installPackage.hs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/installPackage.hs')
-rw-r--r--libraries/installPackage.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/installPackage.hs b/libraries/installPackage.hs
index 00560a7fc9..8c6600952e 100644
--- a/libraries/installPackage.hs
+++ b/libraries/installPackage.hs
@@ -60,7 +60,7 @@ doInstall verbosity ghcpkg ghcpkgconf destdir topdir
-- This is an almighty hack. We need to register
-- ghc-prim:GHC.Prim, but it doesn't exist, get built, get
-- haddocked, get copied, etc.
- pd_reg = if pkgName (package pd) == "ghc-prim"
+ pd_reg = if packageName pd == PackageName "ghc-prim"
then case library pd of
Just lib ->
let ems = "GHC.Prim" : exposedModules lib