[GHC] #13473: Variables in patterns made with QuasiQuotes sometimes don't get bound

GHC ghc-devs at haskell.org
Fri Mar 24 00:16:30 UTC 2017


#13473: Variables in patterns made with QuasiQuotes sometimes don't get bound
-------------------------------------+-------------------------------------
        Reporter:  harpocrates       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by harpocrates):

 Actually, it looks like this is equivalent to a more general TH issue
 (with a smaller minimal example). The following compiles in 7.10.3 but not
 8.0.2

 {{{
 {-# LANGUAGE TemplateHaskell #-}
 module Main where

 import Language.Haskell.TH

 main = let $(varP $ mkName "x") = 1 in print x
 }}}

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


More information about the ghc-tickets mailing list