#2530: deriving Show adds extra parens for constructor with record syntax
----------------------+-----------------------------------------------------
Reporter: spl | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12 branch
Component: Compiler | Version: 6.8.3
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: x86
Os: MacOS X |
----------------------+-----------------------------------------------------
Changes (by NeilMitchell):
* cc: [EMAIL PROTECTED] (added)
Comment:
I do often use x{...} as a single term without brackets, but if I couldn't
that wouldn't be too much of as hassle. Given that printing should produce
unambiguous terms (both for the compiler and the human reader), adding the
brackets seems a sensible choice.
I am strongly in favour of Hugs and GHC agreeing on this, and indeed on
everything. As soon as they don't, we're going to be in the situation
where peoples programs behave differently, where test cases need two sets
of "matching output" etc. As a regular user of both systems, the current
compatibility is wonderful, but perfect compatibility (for a subset of
Haskell) would be better.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2530#comment:7>
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