projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
darcs-all: allow relative path for repo in local fs
[ghc-hetmet.git]
/
compiler
/
coreSyn
/
ExternalCore.lhs
diff --git
a/compiler/coreSyn/ExternalCore.lhs
b/compiler/coreSyn/ExternalCore.lhs
index
c5035e2
..
2fdcf2d
100644
(file)
--- a/
compiler/coreSyn/ExternalCore.lhs
+++ b/
compiler/coreSyn/ExternalCore.lhs
@@
-34,7
+34,9
@@
data Exp
| Case Exp Vbind Ty [Alt] {- non-empty list -}
| Cast Exp Ty
| Note String Exp
| Case Exp Vbind Ty [Alt] {- non-empty list -}
| Cast Exp Ty
| Note String Exp
- | External String Ty
+ | External String String Ty {- target name, convention, and type -}
+ | DynExternal String Ty {- convention and type (incl. Addr# of target as first arg) -}
+ | Label String
data Bind
= Vb Vbind
data Bind
= Vb Vbind
@@
-60,6
+62,7
@@
data Kind
| Kunboxed
| Kopen
| Karrow Kind Kind
| Kunboxed
| Kopen
| Karrow Kind Kind
+ | Keq Ty Ty
data Lit
= Lint Integer Ty
data Lit
= Lint Integer Ty
@@
-78,10
+81,10
@@
type Qual t = (Mname,t)
type Id = String
type Id = String
-primMname = "GHCziPrim"
+primMname = "base:GHC.Prim"
tcArrow :: Qual Tcon
tcArrow :: Qual Tcon
-tcArrow = (primMname, "ZLzmzgZR")
+tcArrow = (primMname, "(->)")
\end{code}
\end{code}