Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
c55d0121
Commit
c55d0121
authored
Jun 29, 2005
by
simonpj
Browse files
[project @ 2005-06-29 16:04:04 by simonpj]
Vital wibble to last commit!
parent
adc9d5cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/basicTypes/RdrName.lhs
View file @
c55d0121
...
...
@@ -390,9 +390,10 @@ pickGREs rdr_name gres
| is_unqual || m == mod = Just gre
| otherwise = Nothing
pick gre@(GRE {gre_prov = Imported [is]}) -- Single import (efficiency)
| is_unqual && not (is_qual (is_decl is)) = Just gre
| mod == is_as (is_decl is) = Just gre
| otherwise = Nothing
| is_unqual = if not (is_qual (is_decl is)) then Just gre
else Nothing
| otherwise = if mod == is_as (is_decl is) then Just gre
else Nothing
pick gre@(GRE {gre_prov = Imported is}) -- Multiple import
| null filtered_is = Nothing
| otherwise = Just (gre {gre_prov = Imported filtered_is})
...
...
Write
Preview
Supports
Markdown
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