[GHC] #760: Template Haskell doesn't like scoped type variables

GHC trac at galois.com
Thu May 4 10:09:29 EDT 2006


#760: Template Haskell doesn't like scoped type variables
---------------------------------+------------------------------------------
  Reporter:  rl at cse.unsw.edu.au  |          Owner:       
      Type:  bug                 |         Status:  new  
  Priority:  normal              |      Milestone:       
 Component:  Compiler            |        Version:  6.4.2
  Severity:  normal              |     Resolution:       
  Keywords:                      |             Os:  Linux
Difficulty:  Unknown             |   Architecture:  x86  
---------------------------------+------------------------------------------
Comment (by simonpj):

 Template Haskell originally only supported Haskell 98, but various non-H98
 extensions have since been added.  Apparently, TH patterns can contain
 type signatures (I didn't know that), but there does not seem to be any
 support for lexical scoping of type variables.

 Since GHC itself is in a state of flux wrt lexically scoped type
 variables, I'm not going to fix this now. I would love some TH enthusiast
 to take it on.

 Meanwhile, just avoid type signatures in patterns.

 Simon

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


More information about the Glasgow-haskell-bugs mailing list