summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2016-04-19 18:32:29 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2016-04-19 18:32:29 +0200
commit91ee5090f1e3f43e9e803cf7005a7f3357e58377 (patch)
tree871bc8a3e8c797eabbdec401aaf3c7cc19d99405 /libraries
parent81e227929c15ad82f6f67a7390ee140da85eefdb (diff)
downloadhaskell-91ee5090f1e3f43e9e803cf7005a7f3357e58377.tar.gz
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...
Diffstat (limited to 'libraries')
-rw-r--r--libraries/base/GHC/Stack/Types.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/base/GHC/Stack/Types.hs b/libraries/base/GHC/Stack/Types.hs
index 33b24a4af6..29be6d6e8d 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 ()