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
jberryman
GHC
Commits
9c8f079e
Commit
9c8f079e
authored
Jan 18, 2002
by
sof
Browse files
[project @ 2002-01-18 06:44:33 by sof]
added isHomePackageThing :: NamedThing a => a -> Bool
parent
146687a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/typecheck/TcEnv.lhs
View file @
9c8f079e
...
...
@@ -33,7 +33,7 @@ module TcEnv(
newLocalName, newDFunName,
-- Misc
isLocalThing, tcSetEnv
isLocalThing,
isHomePackageThing,
tcSetEnv
) where
#include "HsVersions.h"
...
...
@@ -53,7 +53,8 @@ import DataCon ( DataCon )
import TyCon ( TyCon )
import Class ( Class, ClassOpItem )
import Name ( Name, NamedThing(..),
getSrcLoc, mkLocalName, isLocalName, nameIsLocalOrFrom
getSrcLoc, mkLocalName, isLocalName, nameIsLocalOrFrom,
isHomePackageName
)
import NameEnv ( NameEnv, lookupNameEnv, nameEnvElts, elemNameEnv,
extendNameEnvList, emptyNameEnv, plusNameEnv )
...
...
@@ -253,6 +254,9 @@ newDFunName clas [] loc = pprPanic "newDFunName" (ppr clas <+> ppr loc)
\begin{code}
isLocalThing :: NamedThing a => Module -> a -> Bool
isLocalThing mod thing = nameIsLocalOrFrom mod (getName thing)
isHomePackageThing :: NamedThing a => a -> Bool
isHomePackageThing thing = isHomePackageName (getName thing)
\end{code}
%************************************************************************
...
...
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