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
obsidiansystems
GHC
Commits
21dcb917
Commit
21dcb917
authored
Jul 31, 2008
by
batterseapower
Browse files
Follow OccName changes in TysPrim
parent
5eb542ca
Changes
1
Show whitespace changes
Inline
Side-by-side
compiler/prelude/TysPrim.lhs
View file @
21dcb917
...
...
@@ -48,7 +48,7 @@ module TysPrim(
import Var ( TyVar, mkTyVar )
import Name ( Name, BuiltInSyntax(..), mkInternalName, mkWiredInName )
import OccName ( mk
OccNameFS, tcName, mkTyVar
Occ )
import OccName ( mk
TyVarOccFS, mkTc
Occ
FS
)
import TyCon ( TyCon, mkPrimTyCon, mkLiftedPrimTyCon,
PrimRep(..) )
import Type
...
...
@@ -100,7 +100,7 @@ primTyCons
mkPrimTc :: FastString -> Unique -> TyCon -> Name
mkPrimTc fs unique tycon
= mkWiredInName gHC_PRIM (mkOcc
NameFS tcName
fs)
= mkWiredInName gHC_PRIM (mk
Tc
Occ
FS
fs)
unique
(ATyCon tycon) -- Relevant TyCon
UserSyntax -- None are built-in syntax
...
...
@@ -146,7 +146,7 @@ alphaTyVars is a list of type variables for use in templates:
\begin{code}
tyVarList :: Kind -> [TyVar]
tyVarList kind = [ mkTyVar (mkInternalName (mkAlphaTyVarUnique u)
(mkTyVarOcc (mkFastString name))
(mkTyVarOcc
FS
(mkFastString name))
noSrcSpan) kind
| u <- [2..],
let name | c <= 'z' = [c]
...
...
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