Ticket #5795 (closed bug: fixed)
Breaking the staging restriction in type splices causes GHC panic
| Reported by: | reinerp | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.4.2 |
| Component: | Template Haskell | Version: | 7.4.1-rc1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | th/T5795 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
Test case:
{-# LANGUAGE TemplateHaskell #-}
module B where
import Language.Haskell.TH
ty :: Q Type
ty = [t| Int |]
f :: $ty
f = undefined
The error message is:
B.hs:9:6:
GHC internal error: `ty' is not in scope during type checking, but it passed the renamer
tcl_env of environment: []
In the expression: ty
In the type signature for `f': f :: $ty
This is the same error as in #5792.
Change History
Note: See
TracTickets for help on using
tickets.
