Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
6c235b51
Commit
6c235b51
authored
Sep 30, 2013
by
parcs
Browse files
Compare against pRELUDE_NAME instead of "Prelude"
parent
b9127f44
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/typecheck/TcRnDriver.lhs
View file @
6c235b51
...
@@ -1005,7 +1005,7 @@ tcAmpImportViaPrelude :: Name
...
@@ -1005,7 +1005,7 @@ tcAmpImportViaPrelude :: Name
tcAmpImportViaPrelude name = any importViaPrelude
tcAmpImportViaPrelude name = any importViaPrelude
where
where
isPrelude :: ImportDecl Name -> Bool
isPrelude :: ImportDecl Name -> Bool
isPrelude
= (== "Prelude") . moduleNameString .
unLoc
.
ideclName
isPrelude
imp =
unLoc
(
ideclName
imp) == pRELUDE_NAME
-- Implicit (Prelude) import?
-- Implicit (Prelude) import?
isImplicit :: ImportDecl Name -> Bool
isImplicit :: ImportDecl Name -> Bool
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment