projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac43cdb
)
[project @ 1999-04-27 14:35:25 by simonm]
author
simonm
<unknown>
Tue, 27 Apr 1999 14:35:25 +0000
(14:35 +0000)
committer
simonm
<unknown>
Tue, 27 Apr 1999 14:35:25 +0000
(14:35 +0000)
indexArray# now returns an unboxed 1-tuple.
ghc/compiler/prelude/PrimOp.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/prelude/PrimOp.lhs
b/ghc/compiler/prelude/PrimOp.lhs
index
d43d498
..
dd15382
100644
(file)
--- a/
ghc/compiler/prelude/PrimOp.lhs
+++ b/
ghc/compiler/prelude/PrimOp.lhs
@@
-1277,7
+1277,7
@@
primOpInfo WriteArrayOp
primOpInfo IndexArrayOp
= let { elt = alphaTy; elt_tv = alphaTyVar } in
mkGenPrimOp SLIT("indexArray#") [elt_tv] [mkArrayPrimTy elt, intPrimTy]
- (unboxedPair [realWorldStatePrimTy, elt])
+ (mkUnboxedTupleTy 1 [elt])
---------------------------------------------------------------------------
-- Primitive arrays full of unboxed bytes: