summaryrefslogtreecommitdiff
path: root/compiler/iface
diff options
context:
space:
mode:
authorDavid Terei <davidterei@gmail.com>2011-04-25 13:05:47 -0700
committerDavid Terei <davidterei@gmail.com>2011-06-17 18:39:23 -0700
commit45c64c1da96dc26ebc89b080dc12cfcc52a4cd68 (patch)
tree8c22db8a74da733b44d9ad9d8d7a7a6637726016 /compiler/iface
parent94434054df5633fc7aef9aad37aa26c8b2e011cd (diff)
downloadhaskell-45c64c1da96dc26ebc89b080dc12cfcc52a4cd68.tar.gz
SafeHaskell: Disable certain ghc extensions in Safe.
This patch disables the use of some GHC extensions in Safe mode and also the use of certain flags. Some are disabled completely while others are only allowed on the command line and not in source PRAGMAS. We also check that Safe imports are indeed importing a Safe or Trustworthy module.
Diffstat (limited to 'compiler/iface')
-rw-r--r--compiler/iface/MkIface.lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/iface/MkIface.lhs b/compiler/iface/MkIface.lhs
index bd727dacab..e9e921f0a5 100644
--- a/compiler/iface/MkIface.lhs
+++ b/compiler/iface/MkIface.lhs
@@ -909,7 +909,7 @@ mk_usage_info pit hsc_env this_mod direct_imports used_names
= case lookupModuleEnv direct_imports mod of
Just ((_,_,_,safe):_xs) -> (True, safe)
Just _ -> pprPanic "mkUsage: empty direct import" empty
- Nothing -> (False, safeImportsRequired dflags)
+ Nothing -> (False, safeImplicitImpsReq dflags)
-- Nothing case is for implicit imports like 'System.IO' when 'putStrLn'
-- is used in the source code. We require them to be safe in SafeHaskell