Bugs item #561809, was opened at 2002-05-29 05: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: Closed
>Resolution: Fixed
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)

----------------------------------------------------------------------

>Comment By: Simon Peyton Jones (simonpj)
Date: 2002-06-07 16:21

Message:
Logged In: YES 
user_id=50165

Fixed, thank you

----------------------------------------------------------------------

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

Reply via email to