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

GHC ghc-devs at haskell.org
Mon Mar 2 17:15:55 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
-------------------------------------+-------------------------------------

Comment (by Austin Seipp <austin@…>):

 In [changeset:"5692643c9d17e746327588cd6157a923642b7975/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="5692643c9d17e746327588cd6157a923642b7975"
 Show record construction/update without parens

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

 Reviewers: austin

 Reviewed By: austin

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D669

 GHC Trac Issues: #2530
 }}}

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


More information about the ghc-tickets mailing list