|
[ ghc-Bugs-721511 ] Non-exhaustive patterns in ParseMonad.hs: msg#00027lang.haskell.glasgow.bugs
Bugs item #721511, was opened at 2003-04-15 00:40 Message generated for change (Comment added) made by simonmar 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: Closed >Resolution: Fixed 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: Simon Marlow (simonmar) Date: 2003-06-05 10:40 Message: Logged In: YES user_id=48280 Fixed, thanks. (rev. 1.9 of Language/Haskell/Lexer.hs, the fix is in 6.0). ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-04-22 12: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: | [ ghc-Bugs-668705 ] hsc2hs broken under Win32, SourceForge.net |
|---|---|
| Next by Date: | RE: Package Main, Simon Marlow |
| Previous by Thread: | [ ghc-Bugs-668705 ] hsc2hs broken under Win32, SourceForge.net |
| Next by Thread: | Templates in ghc-6.0 & --make, Ch. A. Herrmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |