[commit: packages/base] master: Show docs for coerce and Coercible in GHC.Exts (898607d)

git at git.haskell.org git at git.haskell.org
Thu Jan 30 16:29:34 UTC 2014


Repository : ssh://git@git.haskell.org/base

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/898607d413855f98b1feea4f7d6bf3cf7072ffe6/base

>---------------------------------------------------------------

commit 898607d413855f98b1feea4f7d6bf3cf7072ffe6
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Thu Jan 30 16:28:51 2014 +0000

    Show docs for coerce and Coercible in GHC.Exts
    
    as that is the canonical place for people to import them from.


>---------------------------------------------------------------

898607d413855f98b1feea4f7d6bf3cf7072ffe6
 GHC/Exts.hs |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/GHC/Exts.hs b/GHC/Exts.hs
index a7a04b4..299adab 100755
--- a/GHC/Exts.hs
+++ b/GHC/Exts.hs
@@ -45,6 +45,9 @@ module GHC.Exts
         -- * Ids with special behaviour
         lazy, inline,
 
+        -- * Safe coercions
+        GHC.Prim.coerce, GHC.Prim.Coercible,
+
         -- * Transform comprehensions
         Down(..), groupWith, sortWith, the,
 
@@ -66,8 +69,9 @@ module GHC.Exts
 
 import Prelude
 
-import GHC.Prim
-import GHC.Base
+import GHC.Prim hiding (coerce, Coercible)
+import qualified GHC.Prim
+import GHC.Base hiding (coerce, Coercible)
 import GHC.Word
 import GHC.Int
 import GHC.Ptr



More information about the ghc-commits mailing list