summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakenobu Tani <takenobu.hs@gmail.com>2017-05-04 14:16:49 -0400
committerBen Gamari <ben@smart-cactus.org>2017-05-04 18:20:44 -0400
commit4fcaf8e97db89b0c040ca33f0503faf3403b918f (patch)
treef57afee09bb6a27769cb43de607cd86830116255
parent0b41bbcdef5f690e6a8f549787775a52e6b70c5b (diff)
downloadhaskell-4fcaf8e97db89b0c040ca33f0503faf3403b918f.tar.gz
Fix comment for compact region
There were old module names: * Data.Compact -> GHC.Compact * Data.Compact.Internal -> GHC.Compact This commit is for ghc-8.2 branch. Test Plan: build Reviewers: austin, bgamari, hvr, erikd, simonmar Reviewed By: bgamari Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3522
-rw-r--r--libraries/base/GHC/IO/Exception.hs2
-rw-r--r--libraries/ghc-compact/GHC/Compact.hs4
-rw-r--r--rts/sm/CNF.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/libraries/base/GHC/IO/Exception.hs b/libraries/base/GHC/IO/Exception.hs
index 17eda3d61f..9203f46828 100644
--- a/libraries/base/GHC/IO/Exception.hs
+++ b/libraries/base/GHC/IO/Exception.hs
@@ -131,7 +131,7 @@ allocationLimitExceeded = toException AllocationLimitExceeded
-- | Compaction found an object that cannot be compacted. Functions
-- cannot be compacted, nor can mutable objects or pinned objects.
--- See 'Data.Compact.compact'.
+-- See 'GHC.Compact.compact'.
--
-- @since 4.10.0.0
newtype CompactionFailed = CompactionFailed String
diff --git a/libraries/ghc-compact/GHC/Compact.hs b/libraries/ghc-compact/GHC/Compact.hs
index ea0663e889..375e341adf 100644
--- a/libraries/ghc-compact/GHC/Compact.hs
+++ b/libraries/ghc-compact/GHC/Compact.hs
@@ -104,12 +104,12 @@ import GHC.Types
--
-- The cost of compaction is similar to the cost of GC for the same
-- data, but it is performed only once. However, because
--- "Data.Compact.compact" does not stop-the-world, retaining internal
+-- "GHC.Compact.compact" does not stop-the-world, retaining internal
-- sharing during the compaction process is very costly. The user
-- can choose whether to 'compact' or 'compactWithSharing'.
--
-- When you have a @'Compact' a@, you can get a pointer to the actual object
--- in the region using "Data.Compact.getCompact". The 'Compact' type
+-- in the region using "GHC.Compact.getCompact". The 'Compact' type
-- serves as handle on the region itself; you can use this handle
-- to add data to a specific 'Compact' with 'compactAdd' or
-- 'compactAddWithSharing' (giving you a new handle which corresponds
diff --git a/rts/sm/CNF.c b/rts/sm/CNF.c
index 72ab6f24cf..f740d05e10 100644
--- a/rts/sm/CNF.c
+++ b/rts/sm/CNF.c
@@ -4,7 +4,7 @@
*
* GC support for immutable non-GCed structures, also known as Compact
* Normal Forms (CNF for short). This provides the RTS support for
- * the 'compact' package and the Data.Compact module.
+ * the 'compact' package and the GHC.Compact module.
*
* ---------------------------------------------------------------------------*/
@@ -51,7 +51,7 @@
Structure
~~~~~~~~~
- * In Data.Compact.Internal we have
+ * In GHC.Compact we have
data Compact a = Compact Compact# a
* The Compact# primitive object is operated on by the primitives.