GHC-6.9 panics rather than parse error, related to view patterns.
Try to compile the below program, ghc panics rather than giving a parse error (in the program I was trying to write, wrapper's argument should be a lambda function).
main = do
wrapper (_ -> putStrLn "_")
wrapper :: (String -> IO ()) -> IO () wrapper f = f ""
Output:
[1 of 1] Compiling Main ( Test.hs, interpreted ) : panic! (the 'impossible' happened)
(GHC version 6.9.20071111 for i386-unknown-mingw32):
rnExpr: unexpected expression: panic! (the 'impossible' happened)
(GHC version 6.9.20071111 for i386-unknown-mingw32):
hsSyn/HsExpr.lhs:(320,0)-(467,72): Non-exhaustive patterns in functi
pr_expr
Trac metadata
Trac field | Value |
---|---|
Version | 6.9 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Windows |
Architecture | x86 |