ghc(i) crashes on instance declaration
multiple lines, ''no wiki''
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies, ConstraintKinds, UndecidableInstances, FunctionalDependencies, FlexibleInstances #-}
{-
after declaring the instance
instance TS TST TT m where
below my ghci crashes on arch linux x86_64, if you comment it out no crash happens.
ghc: panic! (the 'impossible' happened)
(GHC version 7.6.2 for x86_64-unknown-linux):
getClassPredTys
<<details unavailable>>
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
-}
module Crash where
class T t where
type TPI t :: *
class (T t, C (TPI t) m (TPI t)) => TC c t m | c -> t
class (T t, C (TPI t) m (TPI t)) => TS s t m | s -> t
data C i m o
data TST
data TT
instance TS TST TT m where
Trac metadata
Trac field |
Value |
Version |
7.6.2 |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
Unresolved |
Component |
Compiler |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|