#3415: Peculiar anomaly with record style data types and deriving Read
----------------------------+-----------------------------------------------
Reporter: DinoMorelli | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.4
Severity: normal | Resolution: invalid
Keywords: | Difficulty: Unknown
Testcase: | Os: Linux
Architecture: x86 |
----------------------------+-----------------------------------------------
Changes (by igloo):
* status: new => closed
* difficulty: => Unknown
* resolution: => invalid
Comment:
Thanks for the report; however, this is not a bug.
The [http://haskell.org/onlinereport/derived.html#sect10.4 Haskell Report,
section 10.4] says
{{{
If the constructor is defined using record syntax, the derived Read
will parse only the record-syntax form, and furthermore, the fields
must be given in the same order as the original declaration.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3415#comment:1>
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