summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-04-11 17:03:18 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-04-30 01:56:56 -0400
commit8bfb0219587b969d5c8f723c46d433e9493958b4 (patch)
tree7ed243039324e5a85905985589d7defd91543625 /libraries
parent10d15f1ec4bab4dd6152d87fc66e61658a705eb3 (diff)
downloadhaskell-8bfb0219587b969d5c8f723c46d433e9493958b4.tar.gz
Unit: split and rename modules
Introduce GHC.Unit.* hierarchy for everything concerning units, packages and modules. Update Haddock submodule
Diffstat (limited to 'libraries')
-rw-r--r--libraries/ghc-boot/GHC/Unit/Database.hs (renamed from libraries/ghc-boot/GHC/PackageDb.hs)6
-rw-r--r--libraries/ghc-boot/ghc-boot.cabal.in4
2 files changed, 5 insertions, 5 deletions
diff --git a/libraries/ghc-boot/GHC/PackageDb.hs b/libraries/ghc-boot/GHC/Unit/Database.hs
index 650234927c..8ed139adf3 100644
--- a/libraries/ghc-boot/GHC/PackageDb.hs
+++ b/libraries/ghc-boot/GHC/Unit/Database.hs
@@ -15,7 +15,7 @@
-----------------------------------------------------------------------------
-- |
--- Module : GHC.PackageDb
+-- Module : GHC.Unit.Database
-- Copyright : (c) The University of Glasgow 2009, Duncan Coutts 2014
--
-- Maintainer : ghc-devs@haskell.org
@@ -47,7 +47,7 @@
-- is kept in the file but here we treat it as an opaque blob of data. That way
-- this library avoids depending on Cabal.
--
-module GHC.PackageDb
+module GHC.Unit.Database
( GenericUnitInfo(..)
, type DbUnitInfo
, DbModule (..)
@@ -495,7 +495,7 @@ decodeFromFile file mode decoder = case mode of
where
err = mkIOError InappropriateType loc Nothing (Just file)
`ioeSetErrorString` msg
- loc = "GHC.PackageDb.readPackageDb"
+ loc = "GHC.Unit.Database.readPackageDb"
-- Copied from Cabal's Distribution.Simple.Utils.
writeFileAtomic :: FilePath -> BS.Lazy.ByteString -> IO ()
diff --git a/libraries/ghc-boot/ghc-boot.cabal.in b/libraries/ghc-boot/ghc-boot.cabal.in
index c8ac491c59..6866f65011 100644
--- a/libraries/ghc-boot/ghc-boot.cabal.in
+++ b/libraries/ghc-boot/ghc-boot.cabal.in
@@ -13,7 +13,7 @@ synopsis: Shared functionality between GHC and its boot libraries
description: This library is shared between GHC, ghc-pkg, and other boot
libraries.
.
- A note about "GHC.PackageDb": it only deals with the subset of
+ A note about "GHC.Unit.Database": it only deals with the subset of
the package database that the compiler cares about: modules
paths etc and not package metadata like description, authors
etc. It is thus not a library interface to ghc-pkg and is *not*
@@ -39,7 +39,7 @@ Library
exposed-modules:
GHC.BaseDir
GHC.LanguageExtensions
- GHC.PackageDb
+ GHC.Unit.Database
GHC.Serialized
GHC.ForeignSrcLang
GHC.HandleEncoding