[GHC] #12081: TypeInType Compile-time Panic
GHC
ghc-devs at haskell.org
Wed May 18 20:57:54 UTC 2016
#12081: TypeInType Compile-time Panic
-------------------------------------+-------------------------------------
Reporter: MichaelK | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1-rc4
Resolution: | Keywords: TypeInType
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time | Unknown/Multiple
crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by goldfire):
* keywords: => TypeInType
Comment:
GHC should never panic, so this is certainly a bug.
However, your program is not type-correct: any type that classifies a
runtime value must have kind `Type` (same as `*`). The type of `f` is
given as `(a :: T n)`, which has kind `T n`, not `Type`. I'm not sure what
your goal is here, but even without the panic, this program would be
rejected by GHC.
Thanks for reporting!
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12081#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list