#3415: Peculiar anomaly with record style data types and deriving Read
------------------------+---------------------------------------------------
Reporter: DinoMorelli | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.4 | Severity: normal
Keywords: | Testcase:
Os: Linux | Architecture: x86
------------------------+---------------------------------------------------
-- Given this data type
data Foo = Foo { foo :: Int } deriving (Read, Show)
-- this fails
bar :: Foo
bar = read "Foo 42"
-- However, non-record-style construction is allowed:
baz :: Foo
baz = Foo 42
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3415>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs