|
RE: "panic! (the `impossible' happened): Prelude.head: empty list: msg#00029lang.haskell.glasgow.bugs
Thanks! I've fixed this, and added a test. Simon | -----Original Message----- | From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx [mailto:glasgow-haskell-bugs- | bounces@xxxxxxxxxxx] On Behalf Of Ian Lynagh | Sent: 14 October 2005 20:51 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: "panic! (the `impossible' happened): Prelude.head: empty list | | | When I try to compile this module: | | ----------------------------------- | module Q where | | data FooBar a b = Foo | Bar | | data P a b = P0 | P1 (FooBar a b) | | data PS p a c where | (:<=>) :: p a b -> p b c -> PS p a c | | f :: PS P a c -> Int | f ((P1 _ :: P a b) :<=> (P0 :: P b c)) = undefined | f ((P1 Bar :: P a b) :<=> (P1 Bar :: P b c)) = undefined | f (P1 (_ :: FooBar a b) :<=> P1 (Bar :: FooBar b c)) = undefined | ----------------------------------- | | I get this panic from ghc 6.4.1: | | $ ghc -fglasgow-exts -c Q.hs | ghc-6.4.1: panic! (the `impossible' happened, GHC version 6.4.1): | Prelude.head: empty list | | Please report it as a compiler bug to glasgow-haskell-bugs@xxxxxxxxxxx, | or http://sourceforge.net/projects/ghc/. | | $ | | | Thanks | Ian | | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: GHC 6.5 (Visual Haskell) bug with wxHaskell, Simon Marlow |
|---|---|
| Next by Date: | [ ghc-Bugs-1328684 ] Win GHC 6.4.1 crashes while building FastPackedString, SourceForge.net |
| Previous by Thread: | "panic! (the `impossible' happened): Prelude.head: empty list, Ian Lynagh |
| Next by Thread: | [ ghc-Bugs-1328256 ] GLUT: Visibility doc flipped, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |