summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/main/PackageConfig.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/main/PackageConfig.hs b/compiler/main/PackageConfig.hs
index b94ea65a65..3c41151c11 100644
--- a/compiler/main/PackageConfig.hs
+++ b/compiler/main/PackageConfig.hs
@@ -34,6 +34,7 @@ import Data.Version
import FastString
import Outputable
import Module
+import Unique
-- -----------------------------------------------------------------------------
-- Our PackageConfig type is the InstalledPackageInfo from bin-package-db,
@@ -66,6 +67,15 @@ instance BinaryStringRep PackageName where
fromStringRep = PackageName . mkFastStringByteString
toStringRep (PackageName s) = fastStringToByteString s
+instance Uniquable InstalledPackageId where
+ getUnique (InstalledPackageId n) = getUnique n
+
+instance Uniquable SourcePackageId where
+ getUnique (SourcePackageId n) = getUnique n
+
+instance Uniquable PackageName where
+ getUnique (PackageName n) = getUnique n
+
instance Outputable InstalledPackageId where
ppr (InstalledPackageId str) = ftext str