diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-04-02 16:00:37 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-30 01:56:56 -0400 |
commit | 69562e34fb5d9571e9efc1cb90c879e50129a510 (patch) | |
tree | 37862ab1621eab67e9ad1e6e363e63c8c175609e /libraries | |
parent | 10a2ba90aa6a788677104cc43318c66f46e2e2b0 (diff) | |
download | haskell-69562e34fb5d9571e9efc1cb90c879e50129a510.tar.gz |
Remove unused `emptyGenericUnitInfo`
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/ghc-boot/GHC/PackageDb.hs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/libraries/ghc-boot/GHC/PackageDb.hs b/libraries/ghc-boot/GHC/PackageDb.hs index b0d7a179cb..bc6cdbcc6d 100644 --- a/libraries/ghc-boot/GHC/PackageDb.hs +++ b/libraries/ghc-boot/GHC/PackageDb.hs @@ -48,7 +48,6 @@ -- module GHC.PackageDb ( GenericUnitInfo(..) - , emptyGenericUnitInfo -- * Read and write , DbMode(..) , DbOpenMode(..) @@ -282,41 +281,6 @@ class BinaryStringRep a where fromStringRep :: BS.ByteString -> a toStringRep :: a -> BS.ByteString -emptyGenericUnitInfo :: RepGenericUnitInfo a b c d e f g - => GenericUnitInfo a b c d e f g -emptyGenericUnitInfo = - GenericUnitInfo { - unitId = fromStringRep BS.empty, - unitInstanceOf = fromStringRep BS.empty, - unitInstantiations = [], - unitPackageId = fromStringRep BS.empty, - unitPackageName = fromStringRep BS.empty, - unitPackageVersion = Version [] [], - unitComponentName = Nothing, - unitAbiHash = "", - unitDepends = [], - unitAbiDepends = [], - unitImportDirs = [], - unitLibraries = [], - unitExtDepLibsSys = [], - unitExtDepLibsGhc = [], - unitLibraryDirs = [], - unitLibraryDynDirs = [], - unitExtDepFrameworks = [], - unitExtDepFrameworkDirs = [], - unitLinkerOptions = [], - unitCcOptions = [], - unitIncludes = [], - unitIncludeDirs = [], - unitHaddockInterfaces = [], - unitHaddockHTMLs = [], - unitExposedModules = [], - unitHiddenModules = [], - unitIsIndefinite = False, - unitIsExposed = False, - unitIsTrusted = False - } - -- | Represents a lock of a package db. newtype PackageDbLock = PackageDbLock Handle |