[GHC] #2530: deriving Show adds extra parens for constructor with record syntax

GHC ghc-devs at haskell.org
Thu Feb 19 10:40:58 UTC 2015


#2530: deriving Show adds extra parens for constructor with record syntax
-------------------------------------+-------------------------------------
        Reporter:  spl               |                   Owner:
            Type:  bug               |                  Status:  patch
        Priority:  lowest            |               Milestone:  7.12.1
       Component:  Compiler          |                 Version:  6.8.3
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:  Phab:D669
-------------------------------------+-------------------------------------
Changes (by thomie):

 * status:  new => patch
 * differential:   => Phab:D669


Comment:

 The 2010 report, section 11.4, mentions: "The result of `show` is a
 syntactically correct Haskell expression ... Parenthesis are only added
 where needed ..."

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/2530#comment:24>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list