6f00ec6feaad7c4c8834b18f653fb6f9e1b9fda7
[ghc-hetmet.git] / ghc / tests / programs / lennart_array / Main.hs
1 {-
2 Date: Thu, 22 Sep 1994 01:45:39 +0200
3 From: Lennart Augustsson <augustss@cs.chalmers.se>
4 Message-Id: <199409212345.BAA01703@statler.cs.chalmers.se>
5 To: glasgow-haskell-bugs@dcs.glasgow.ac.uk
6 Subject: ghc bug
7
8
9 Ghc has the wrong semantics for arrays as exemplified by this simple
10 program:
11 -}
12
13 import Array -- 1.3
14
15 main = print (array (1,1) [ (1,2), (1,3) ])
16
17 {-
18 As can be seen from the reference implementation in the report this
19 should give an error, but there is no complaint when the program
20 is run.
21
22         -- Lennart
23 -}