Panic in slitFunTy
This code:
{-# OPTIONS -fglasgow-exts #-}
module SYZ where
data Right provides final where
RightNull :: Right final final
RightCons :: b -> Right a final -> Right (b -> a) final
collapse_right :: right -> Right right final -> final
--collapse_right f (RightNull) = f
collapse_right f (RightCons b r) = collapse_right (f b) r
causes this panic:
$ ghc SYZ.hs
ghc-6.6.1: panic! (the 'impossible' happened)
(GHC version 6.6.1 for i386-unknown-linux):
splitFunTy right{tv adJ} [sk]
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
However, GHC 6.6 has no problem with this code.
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |