Ticket #5721 (closed bug: fixed)
Panic when quoting a scoped type variable
| Reported by: | benmachine | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.4.2 |
| Component: | Template Haskell | Version: | 7.2.1 |
| Keywords: | template haskell, scoped type variables | Cc: | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Compile-time crash | Difficulty: | Unknown |
| Test Case: | th/T5721 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
{-# 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.
Change History
Note: See
TracTickets for help on using
tickets.
