[GHC] #10810: Data constructor operators mis-printed in Template Haskell

GHC ghc-devs at haskell.org
Sat Aug 29 04:05:36 UTC 2015


#10810: Data constructor operators mis-printed in Template Haskell
-------------------------------------+-------------------------------------
              Reporter:  goldfire    |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:  7.12.1
             Component:  Template    |           Version:  7.10.2
  Haskell                            |
              Keywords:  newcomer    |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
             Test Case:              |        Blocked By:
              Blocking:              |   Related Tickets:
Differential Revisions:              |
-------------------------------------+-------------------------------------
 When I say

 {{{
 {-# LANGUAGE TemplateHaskell #-}
 {-# OPTIONS_GHC -ddump-splices -dsuppress-uniques #-}

 module Bug where

 $([d| data Foo = (:!) |])
 }}}

 I get

 {{{
 Bug.hs:6:3-24: Splicing declarations
     [d| data Foo = :! |] ======> data Foo = :!
 }}}

 There are missing parentheses in that output.

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


More information about the ghc-tickets mailing list