|
Re: Bugs with GADTs in GHC6.4.1: msg#00070lang.haskell.glasgow.bugs
> The attached script induces panic in GHC6.4.1: "ghc-6.4.1: panic! (the > `impossible' happened, GHC version 6.4.1): applyTypeToArgs f{v a1Eg} > x{v a1Ei}". I think this is related to a known bug, because the same workaround helps -- annotate the "f" and "x" arguments in the last line of your program with dummy type variables, and the program will be accepted: > zap :: Vector n (a -> b) -> Vector n a -> Vector n b > zap fs xs = unfoldv f (len fs) (VP (fs, xs)) where > f :: VectorPair (a->b) a (S n) -> (b, VectorPair (a->b) a n) > f (VP (VCons (f :: foo) fs, VCons (x :: bar) xs)) = (f x, VP (fs, xs)) Cheers, Andres
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | errors installing ghc-6.4.1 (MacOSX 10.4.3, Xcode 2.2), Alex Martelli |
|---|---|
| Next by Date: | [GHC] #628: Make ordinary libraries work with SMP RTS, GHC |
| Previous by Thread: | Bugs with GADTs in GHC6.4.1, Jeremy Gibbons |
| Next by Thread: | Re: Bugs with GADTs in GHC6.4.1, Jeremy Gibbons |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |