summaryrefslogtreecommitdiff
path: root/libraries/ghc-boot
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ghc-boot')
-rw-r--r--libraries/ghc-boot/GHC/PackageDb.hs13
-rw-r--r--libraries/ghc-boot/ghc-boot.cabal2
2 files changed, 2 insertions, 13 deletions
diff --git a/libraries/ghc-boot/GHC/PackageDb.hs b/libraries/ghc-boot/GHC/PackageDb.hs
index fcb24d8a46..2be20b2405 100644
--- a/libraries/ghc-boot/GHC/PackageDb.hs
+++ b/libraries/ghc-boot/GHC/PackageDb.hs
@@ -1,6 +1,4 @@
-{-# LANGUAGE CPP #-}
--- This module deliberately defines orphan instances for now (Binary Version).
-{-# OPTIONS_GHC -fno-warn-orphans -fno-warn-name-shadowing #-}
+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.PackageDb
@@ -381,15 +379,6 @@ instance (BinaryStringRep a, BinaryStringRep b, BinaryStringRep c,
(map (\(k,v) -> (fromStringRep k, v)) instantiatedWith)
exposed trusted)
-instance Binary Version where
- put (Version a b) = do
- put a
- put b
- get = do
- a <- get
- b <- get
- return (Version a b)
-
instance (BinaryStringRep a, BinaryStringRep b) =>
Binary (OriginalModule a b) where
put (OriginalModule originalPackageId originalModuleName) = do
diff --git a/libraries/ghc-boot/ghc-boot.cabal b/libraries/ghc-boot/ghc-boot.cabal
index 7f0f14fc8c..883bbaf795 100644
--- a/libraries/ghc-boot/ghc-boot.cabal
+++ b/libraries/ghc-boot/ghc-boot.cabal
@@ -39,7 +39,7 @@ Library
GHC.LanguageExtensions
build-depends: base >= 4 && < 5,
- binary >= 0.7 && < 0.8,
+ binary == 0.8.*,
bytestring >= 0.9 && < 1,
directory >= 1 && < 1.3,
filepath