Skip to content

Panic when using lists of type-literals

The following program:

{-# LANGUAGE DataKinds #-}

type S = [1,2]

Causes a panic:

ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 7.7.20121129 for x86_64-unknown-linux):
	lookupVers2
<<details unavailable>>
Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information