Read for Arrays does not work
In hugs I can go:
Array> read (show (array (1,1) [(1,42)])) :: Array Int Int
array (1,1) [(1,42)]
whereas ghc gives me:
Main> read (show (array (1,1) [(1,42)])) :: Array Int Int
<interactive>:1:
No instance for (Read (Array Int Int))
arising from use of `read' at <interactive>:1
In an expression with a type signature:
read (show (array (1, 1) [(1, 42)])) :: Array
Int Int
In the definition of `it':
read (show (array (1, 1) [(1, 42)])) :: Array
Int Int
The Haskell Library Report 98 says Read should be defined
for Array a b, with (Read a, Ix a, Read b)
Trac metadata
Trac field |
Value |
Version |
5.02 |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
ResolvedFixed |
Component |
hslibs/lang |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|