Commit 4fcaf8e9 authored by Takenobu Tani's avatar Takenobu Tani Committed by Ben Gamari

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:
parent 0b41bbcd
......@@ -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
newtype CompactionFailed = CompactionFailed String
......@@ -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
......@@ -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 @@
* 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.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment