[GHC] #13550: -ddump-splices doesn't parenthesize type/data families correctly in 8.2.1

GHC ghc-devs at haskell.org
Sun Apr 9 13:32:56 UTC 2017


#13550: -ddump-splices doesn't parenthesize type/data families correctly in 8.2.1
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  alanz
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #13199            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by alanz):

 Following the method in #13199 (output edited for clarity)

 {{{#!haskell
 *Bug Language.Haskell.TH> putStrLn $([d| type instance Foo (Maybe a) b =
 Either (Maybe a) (Maybe b) |] >>= stringE . show)
 [TySynInstD Bug.Foo
   (TySynEqn
     [AppT
       (ConT GHC.Base.Maybe)
       (VarT a_6989586621679027317)
      ,VarT b_6989586621679027318]
     (AppT
       (AppT
         (ConT Data.Either.Either)
         (AppT
           (ConT GHC.Base.Maybe)
           (VarT a_6989586621679027317)
         )
       )
       (AppT (ConT GHC.Base.Maybe) (VarT b_6989586621679027318))
     )
   )
 ]
 }}}

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


More information about the ghc-tickets mailing list