#2033: GHC-6.9 panics rather than parse error, related to view patterns.
----------------------+-----------------------------------------------------
 Reporter:  apeacock  |          Owner:         
     Type:  bug       |         Status:  new    
 Priority:  normal    |      Milestone:         
Component:  Compiler  |        Version:  6.9    
 Severity:  normal    |     Resolution:         
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  x86    
       Os:  Windows   |  
----------------------+-----------------------------------------------------
Comment (by apeacock):

 Sorry, hit submit rather than preview, here is the code again:
 {{{
 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
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2033#comment:1>
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

Reply via email to