[GHC] #7022: Kind variable scoping problem in Iface file when using Template Haskell

GHC cvs-ghc at haskell.org
Sat Jul 21 20:51:27 CEST 2012


#7022: Kind variable scoping problem in Iface file when using Template Haskell
-------------------------------+--------------------------------------------
  Reporter:  goldfire          |          Owner:                           
      Type:  bug               |         Status:  new                      
  Priority:  normal            |      Milestone:                           
 Component:  Compiler          |        Version:  7.5                      
Resolution:                    |       Keywords:  TemplateHaskell PolyKinds
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple         
   Failure:  None/Unknown      |     Difficulty:  Unknown                  
  Testcase:  polykinds/T7022   |      Blockedby:                           
  Blocking:                    |        Related:                           
-------------------------------+--------------------------------------------
Changes (by goldfire):

  * status:  closed => new
  * resolution:  fixed =>


Comment:

 This bug still fails for me (on a Mac, using GHC 7.5.20120720). But,
 rather curiously, the error message has changed:

 {{{
 Declaration for SList
 Type syonym Polykind.SList:
   Iface type variable out of scope:  a
 Cannot continue after interface file error
 }}}

 Now, {{{a}}} is out of scope, instead of {{{k}}} previously. (Also, there
 is evidently a typo in the word 'syonym' in the error.)

 I have a more elaborate test case (in the style of #7024) if you need it.

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



More information about the Glasgow-haskell-bugs mailing list