From 563637ee083cf7318c25a935cd337172a143f20d Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Tue, 27 Apr 1999 14:35:25 +0000
Subject: [PATCH] [project @ 1999-04-27 14:35:25 by simonm] indexArray# now
 returns an unboxed 1-tuple.

---
 ghc/compiler/prelude/PrimOp.lhs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ghc/compiler/prelude/PrimOp.lhs b/ghc/compiler/prelude/PrimOp.lhs
index d43d498bb380..dd15382fadee 100644
--- 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:
-- 
GitLab