[commit: ghc] ghc-8.0: Mark GHC.Stack.Types Trustworthy (d3fd3fe)

git at git.haskell.org git at git.haskell.org
Wed Apr 20 10:50:15 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/d3fd3fea52458793122adc8ef580ddeca2d4dfe5/ghc

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

commit d3fd3fea52458793122adc8ef580ddeca2d4dfe5
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Tue Apr 19 18:32:29 2016 +0200

    Mark GHC.Stack.Types Trustworthy
    
    GHC can't infer this module safe due to the `GHC.Types (Char, Int)`
    and the  (dummy) `GHC.Integer ()` import.
    
    If only `GHC.Types` was marked Trustworthy or Safe...
    
    (cherry picked from commit 91ee5090f1e3f43e9e803cf7005a7f3357e58377)


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

d3fd3fea52458793122adc8ef580ddeca2d4dfe5
 libraries/base/GHC/Stack/Types.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libraries/base/GHC/Stack/Types.hs b/libraries/base/GHC/Stack/Types.hs
index 33b24a4..29be6d6 100644
--- a/libraries/base/GHC/Stack/Types.hs
+++ b/libraries/base/GHC/Stack/Types.hs
@@ -4,6 +4,7 @@
 {-# LANGUAGE KindSignatures    #-}
 {-# LANGUAGE PolyKinds         #-}
 {-# LANGUAGE RankNTypes        #-}
+{-# LANGUAGE Trustworthy       #-}
 
 {-# OPTIONS_HADDOCK hide #-}
 -- we hide this module from haddock to enforce GHC.Stack as the main
@@ -49,7 +50,7 @@ import cycle,
 -}
 
 import GHC.Classes (Eq)
-import GHC.Types
+import GHC.Types (Char, Int)
 
 -- Make implicit dependency known to build system
 import GHC.Tuple ()



More information about the ghc-commits mailing list