|
[ ghc-Bugs-721511 ] Non-exhaustive patterns in ParseMonad.hs: msg#00059lang.haskell.glasgow.bugs
Bugs item #721511, was opened at 2003-04-14 17:40 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=721511&group_id=8032 Category: hslibs/hssource Group: 5.04.3 Status: Open Resolution: None Priority: 5 Submitted By: Bryn Keller (xoltar) Assigned to: Nobody/Anonymous (nobody) Summary: Non-exhaustive patterns in ParseMonad.hs Initial Comment: Running this code: import Language.Haskell.Parser import System.Environment (getArgs) parseFile s = do file <- readFile s case parseModule file of ParseOk m -> putStrLn "Parsed!" ParseFailed loc s -> putStrLn $ "Parse error at " ++ (show loc) ++ ": " ++ s main = do [fileName] <- getArgs parseFile fileName on this file (on Windows 2000) : -- Right xs -> print xs produces this error at runtime: Fail: Language/Haskell/ParseMonad.hs:143: Non-exhaustive patterns in lambda The original file to be parsed contained some other things too, but this one line turned out to be the cause of the problem. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-04-22 05:42 Message: Logged In: NO I'm guessing that this comment wasn't terminated with a newline. That's not legal Haskell (though one might argue that the Report is too restrictive here). The error is now flagged correctly. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=721511&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Evil Mangler hanging while building 5.04.3-1 on RedHat 8.0, 9.0?, Simon Marlow |
|---|---|
| Next by Date: | Re: loading package util on Linux, Dean Herington |
| Previous by Thread: | [ ghc-Bugs-721511 ] Non-exhaustive patterns in ParseMonad.hs, SourceForge.net |
| Next by Thread: | PackedString.hGetPS produces index exception, George Russell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |