#6114: ghc: panic! occurred with use of isInstance, newName and a type splice
--------------------------------+-------------------------------------------
Reporter: davidmiani | Owner:
Type: bug | Status: new
Priority: normal | Component: Template Haskell
Version: 7.4.1 | Keywords:
Os: MacOS X | Architecture: x86_64 (amd64)
Failure: Compile-time crash | Testcase:
Blockedby: | Blocking:
Related: |
--------------------------------+-------------------------------------------
Comment(by guest):
I simplified the testcase, the problem is with newName, not the higher
kind.
{{{
{-# LANGUAGE TemplateHaskell #-}
module Test where
import Language.Haskell.TH
instanceVar = $(do
xName <- newName "x"
instanceType <- [t| $(varT xName) |]
_ <- reifyInstances ''Eq [instanceType]
undefined
)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6114#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs