[GHC] #11629: reify returns Dec that use ConT instead of PromotedT

GHC ghc-devs at haskell.org
Mon Feb 22 23:17:25 UTC 2016


#11629: reify returns Dec that use ConT instead of PromotedT
-------------------------------------+-------------------------------------
        Reporter:  aavogt            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  7.10.2
      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 aavogt):

 running Main.hs leads to output:

 {{{
 reify uses ConT True
 AppT (ConT C.C) (ConT GHC.Types.False)
 AppT (ConT C.C) (ConT GHC.Types.True)
 oxford brackets use PromotedT
 AppT (ConT C.C) (PromotedT GHC.Types.True)
 }}}

 The output should be:

 {{{
 reify uses ConT True
 AppT (ConT C.C) (PromotedT GHC.Types.False)
 AppT (ConT C.C) (PromotedT GHC.Types.True)
 oxford brackets use PromotedT
 AppT (ConT C.C) (PromotedT GHC.Types.True)
 }}}

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


More information about the ghc-tickets mailing list