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
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs