summaryrefslogtreecommitdiff
path: root/compiler/main/HeaderInfo.hs
diff options
context:
space:
mode:
authorDavid Terei <davidterei@gmail.com>2011-04-25 12:14:21 -0700
committerDavid Terei <davidterei@gmail.com>2011-06-17 18:19:48 -0700
commit6de1b0f2f4fe0455df72adb7b43449586b40ba89 (patch)
treef8ef6e2b5348103132fbe0a1d419947b0cc90792 /compiler/main/HeaderInfo.hs
parentf8279ea9fef8c16782a3cd5bc81cf90de3e46cb5 (diff)
downloadhaskell-6de1b0f2f4fe0455df72adb7b43449586b40ba89.tar.gz
SafeHaskell: Add safe import flag (not functional)
Diffstat (limited to 'compiler/main/HeaderInfo.hs')
-rw-r--r--compiler/main/HeaderInfo.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main/HeaderInfo.hs b/compiler/main/HeaderInfo.hs
index 93ce824964..3fd9916c1e 100644
--- a/compiler/main/HeaderInfo.hs
+++ b/compiler/main/HeaderInfo.hs
@@ -98,7 +98,7 @@ mkPrelImports this_mod implicit_prelude import_decls
| otherwise = [preludeImportDecl]
where
explicit_prelude_import
- = notNull [ () | L _ (ImportDecl mod Nothing _ _ _ _) <- import_decls,
+ = notNull [ () | L _ (ImportDecl mod Nothing _ _ _ _ _) <- import_decls,
unLoc mod == pRELUDE_NAME ]
preludeImportDecl :: LImportDecl RdrName
@@ -107,6 +107,7 @@ mkPrelImports this_mod implicit_prelude import_decls
ImportDecl (L loc pRELUDE_NAME)
Nothing {- no specific package -}
False {- Not a boot interface -}
+ False {- Not a safe interface -}
False {- Not qualified -}
Nothing {- No "as" -}
Nothing {- No import list -}