[GHC] #13637: Printing type operators adds extraneous parenthesis

GHC ghc-devs at haskell.org
Sun Dec 9 19:49:45 UTC 2018


#13637: Printing type operators adds extraneous parenthesis
-------------------------------------+-------------------------------------
        Reporter:  darchon           |                Owner:  alanz
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1-rc2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nfrisby):

 I agree that this ticket's bug should be fixed. The {{{We don't keep the
 fixity of type operators in the operator}}} quoted in comment:3 above is
 the root problem, if I understand correctly.

 I'm writing a plugin for type-level sets, and the extra parentheses makes
 the syntax much more difficult to read than it should be. {{{((('Empty :*
 a) :* b) :* c)}}} is worse than {{{'Empty :* a :* b :* c}}}.

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


More information about the ghc-tickets mailing list