Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
0556a63e
Commit
0556a63e
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-08-14 11:35:33 by sof]
getPrimRepInfo: deal with 64-bit reps
parent
bdb30d3e
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/prelude/TysPrim.lhs
+14
-6
14 additions, 6 deletions
ghc/compiler/prelude/TysPrim.lhs
with
14 additions
and
6 deletions
ghc/compiler/prelude/TysPrim.lhs
+
14
−
6
View file @
0556a63e
...
...
@@ -50,9 +50,15 @@ charPrimTyCon = pcPrimTyCon charPrimTyConKey SLIT("Char#") 0 CharRep
intPrimTy = mkTyConTy intPrimTyCon
intPrimTyCon = pcPrimTyCon intPrimTyConKey SLIT("Int#") 0 IntRep
int64PrimTy = mkTyConTy int64PrimTyCon
int64PrimTyCon = pcPrimTyCon int64PrimTyConKey SLIT("Int64#") 0 Int64Rep
wordPrimTy = mkTyConTy wordPrimTyCon
wordPrimTyCon = pcPrimTyCon wordPrimTyConKey SLIT("Word#") 0 WordRep
word64PrimTy = mkTyConTy word64PrimTyCon
word64PrimTyCon = pcPrimTyCon word64PrimTyConKey SLIT("Word64#") 0 Word64Rep
addrPrimTy = mkTyConTy addrPrimTyCon
addrPrimTyCon = pcPrimTyCon addrPrimTyConKey SLIT("Addr#") 0 AddrRep
...
...
@@ -73,12 +79,14 @@ getPrimRepInfo ::
PrimRep -> (String, -- tag string
Type, TyCon) -- prim type and tycon
getPrimRepInfo CharRep = ("Char", charPrimTy, charPrimTyCon)
getPrimRepInfo IntRep = ("Int", intPrimTy, intPrimTyCon)
getPrimRepInfo WordRep = ("Word", wordPrimTy, wordPrimTyCon)
getPrimRepInfo AddrRep = ("Addr", addrPrimTy, addrPrimTyCon)
getPrimRepInfo FloatRep = ("Float", floatPrimTy, floatPrimTyCon)
getPrimRepInfo DoubleRep = ("Double", doublePrimTy, doublePrimTyCon)
getPrimRepInfo CharRep = ("Char", charPrimTy, charPrimTyCon)
getPrimRepInfo IntRep = ("Int", intPrimTy, intPrimTyCon)
getPrimRepInfo WordRep = ("Word", wordPrimTy, wordPrimTyCon)
getPrimRepInfo AddrRep = ("Addr", addrPrimTy, addrPrimTyCon)
getPrimRepInfo FloatRep = ("Float", floatPrimTy, floatPrimTyCon)
getPrimRepInfo DoubleRep = ("Double", doublePrimTy, doublePrimTyCon)
getPrimRepInfo Int64Rep = ("Int64", int64PrimTy, int64PrimTyCon)
getPrimRepInfo Word64Rep = ("Word64", word64PrimTy, word64PrimTyCon)
\end{code}
%************************************************************************
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment