Bugs item #1266898, was opened at 2005-08-23 08:57 Message generated for change (Comment added) made by simonmar You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1266898&group_id=8032
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Compiler (Parser) Group: 6.2.2 >Status: Closed Resolution: None Priority: 5 Submitted By: Axel Simon (as49) Assigned to: Nobody/Anonymous (nobody) Summary: parse error way too late Initial Comment: On the attached file the compiler reports typeerror.hs:29: parse error (possibly incorrect indentation) where line no 29 is the type signature of the second function (lookup). I thought ghc was off by one line and looked desperately at line 30 (which was stupid since ghc's line numbers are only too far down, never early). The solution is that I missed the equal sign in the first function. I report this since I'm puzzled by the fact that ghc got all the way down to the next type signature before the parser found an error. Axel. ---------------------------------------------------------------------- >Comment By: Simon Marlow (simonmar) Date: 2005-09-12 12:27 Message: Logged In: YES user_id=48280 The parse error is on the invisible ';' inserted by layout before the 'lookup' token. Before that, the declaration is a syntactically correct prefix of a declaration (the do expression is inside the guard!). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1266898&group_id=8032 _______________________________________________ Glasgow-haskell-bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
