[GHC] #13942: Pretty-printer butchers function arrow fixity on GHC HEAD

GHC ghc-devs at haskell.org
Mon Jul 10 11:04:14 UTC 2017


#13942: Pretty-printer butchers function arrow fixity on GHC HEAD
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  alanz
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Alan Zimmerman <alan.zimm@…>):

 In [changeset:"c506f8353755333e21d5ee35bc71d2c8f9ddcb1b/ghc"
 c506f835/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="c506f8353755333e21d5ee35bc71d2c8f9ddcb1b"
 Pretty-printer no longer butchers function arrow fixity

 It now correctly prints the parens around '(Int -> Int)' in

     {-# LANGUAGE TemplateHaskell #-}
     {-# OPTIONS_GHC -ddump-splices #-}
     module Bug where

     $([d| f :: Either Int (Int -> Int)
           f = undefined
         |])

 Closes #13942
 }}}

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


More information about the ghc-tickets mailing list