#3342: splitTyConApp panic when using view patterns
-----------------------------+----------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.3 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
Here is a sample program that makes ghci panic with the following message:
{{{
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.3 for i386-unknown-linux):
splitTyConApp t_ag8{tv} [tau]
}}}
The code uses view patterns.
{{{
module Bug where
data F = FT String [F]
data G = GX F F | GY
spec :: F -> G
spec (FT "X" [t1, t2]) = GX t1 t2
spec _ = GY
walk (spec -> GX _ t2) = walk t2
walk t@(FT _ _) = t
}}}
You can reach me at [email protected]
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3342>
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