Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
c0ac8b6b
Commit
c0ac8b6b
authored
Oct 28, 2008
by
Thomas Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor refactoring.
parent
9761825a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
compiler/main/GHC.hs
compiler/main/GHC.hs
+1
-3
compiler/main/HscTypes.lhs
compiler/main/HscTypes.lhs
+1
-1
No files found.
compiler/main/GHC.hs
View file @
c0ac8b6b
...
...
@@ -2413,9 +2413,7 @@ isDictonaryId id
-- 'setContext'.
lookupGlobalName
::
GhcMonad
m
=>
Name
->
m
(
Maybe
TyThing
)
lookupGlobalName
name
=
withSession
$
\
hsc_env
->
do
eps
<-
liftIO
$
readIORef
(
hsc_EPS
hsc_env
)
return
$!
lookupType
(
hsc_dflags
hsc_env
)
(
hsc_HPT
hsc_env
)
(
eps_PTE
eps
)
name
liftIO
$
lookupTypeHscEnv
hsc_env
name
findGlobalAnns
::
(
GhcMonad
m
,
Typeable
a
)
=>
([
Word8
]
->
a
)
->
AnnTarget
Name
->
m
[
a
]
findGlobalAnns
deserialize
target
=
withSession
$
\
hsc_env
->
do
...
...
compiler/main/HscTypes.lhs
View file @
c0ac8b6b
...
...
@@ -1344,7 +1344,7 @@ lookupType dflags hpt pte name
lookupTypeHscEnv :: HscEnv -> Name -> IO (Maybe TyThing)
lookupTypeHscEnv hsc_env name = do
eps <- readIORef (hsc_EPS hsc_env)
return $ lookupType dflags hpt (eps_PTE eps) name
return $
!
lookupType dflags hpt (eps_PTE eps) name
where
dflags = hsc_dflags hsc_env
hpt = hsc_HPT hsc_env
...
...
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