[commit: ghc] master: Make CompactionFailed a newtype (8fdb937)
git at git.haskell.org
git at git.haskell.org
Tue Dec 20 21:33:21 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/8fdb937770d8a4c726585def51ac54bf438e9564/ghc
>---------------------------------------------------------------
commit 8fdb937770d8a4c726585def51ac54bf438e9564
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date: Tue Dec 20 16:32:30 2016 -0500
Make CompactionFailed a newtype
>---------------------------------------------------------------
8fdb937770d8a4c726585def51ac54bf438e9564
libraries/base/GHC/IO/Exception.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libraries/base/GHC/IO/Exception.hs b/libraries/base/GHC/IO/Exception.hs
index a8d63d3..3c08852 100644
--- a/libraries/base/GHC/IO/Exception.hs
+++ b/libraries/base/GHC/IO/Exception.hs
@@ -129,12 +129,12 @@ allocationLimitExceeded = toException AllocationLimitExceeded
-----
--- |Compaction found an object that cannot be compacted. Functions
+-- | Compaction found an object that cannot be compacted. Functions
-- cannot be compacted, nor can mutable objects or pinned objects.
-- See 'Data.Compact.compact'.
--
-- @since 4.10.0.0
-data CompactionFailed = CompactionFailed String
+newtype CompactionFailed = CompactionFailed String
-- | @since 4.10.0.0
instance Exception CompactionFailed where
More information about the ghc-commits
mailing list