Panic when quoting a scoped type variable
{-# LANGUAGE TemplateHaskell, ScopedTypeVariables #-}
module GetNameOfThing where
import Language.Haskell.TH
f :: a -> Name
f (x :: a) = ''a
ghc: panic! (the 'impossible' happened)
(GHC version 7.2.2 for i386-unknown-linux):
th_bracket a{tv ahF}
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
The function is probably nonsense, but the error message could be friendlier.
Tested on GHC 7.2.2.
Trac metadata
Trac field | Value |
---|---|
Version | 7.2.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |