Bugs item #561809, was opened at 2002-05-28 22:12
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=561809&group_id=8032
Category: hslibs/lang
Group: 5.02
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Read for Arrays does not work
Initial Comment:
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)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=561809&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs