[GHC] #12993: GHC 8.0.2-rc2 template Haskell interface file issue

GHC ghc-devs at haskell.org
Fri Dec 16 19:49:31 UTC 2016


#12993: GHC 8.0.2-rc2 template Haskell interface file issue
-------------------------------------+-------------------------------------
        Reporter:  glguy             |                Owner:
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:
       Component:  Compiler          |              Version:  8.0.2-rc1
      Resolution:                    |             Keywords:
Operating System:  MacOS X           |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 The name `runA` is being "exported" through a quote. Minimal reproducer:
 {{{
 -- TA.hs
 {-# LANGUAGE TemplateHaskell #-}
 module TA (q) where
 data X = X { x :: Int }
 q = [|x|]


 -- TB.hs
 {-# LANGUAGE TemplateHaskell #-}
 module TB where
 import TA
 f = $(q)
 }}}

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


More information about the ghc-tickets mailing list