Show Bug (I think)
Simon Peyton-Jones
simonpj at microsoft.com
Wed May 3 06:03:08 EDT 2006
True, thank you. I'm fixing it as we speak. drvrun020 is the test.
Simon
| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of Neil Mitchell
| Sent: 30 April 2006 19:10
| To: glasgow-haskell-bugs at haskell.org
| Subject: Show Bug (I think)
|
| Hi,
|
| -------
| data Item = Item1 Item
| | Item2 {a :: Int}
| deriving (Show, Read)
|
| value = Item1 (Item2 1)
|
| valueHugs = "Item1 Item2 {a = 1}"
| valueGhc = "Item1 (Item2 {a = 1})"
|
| readItem x = (read x) :: Item
| ------
|
| With the following code show value under Hugs and Ghc give different
| results. readItem valueHugs and valueGhc both succeed under Hugs, but
| readItem valueHugs fails under GHC.
|
| I guess this is a bug with GHC, since that text for valueHugs on the
| command line succeeds with GHCi - i.e. typed directly not with read.
|
| Hugs: WinHugs CVS
| GHC: 6.4.2 Windows
|
| Thanks
|
| Neil
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list