#2046: Parse errors for mismatched brackets are awful
--------------------------------+-------------------------------------------
Reporter: NeilMitchell | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 6.6.1 | Severity: minor
Keywords: | Testcase:
Architecture: Unknown | Os: Unknown
--------------------------------+-------------------------------------------
{{{
ghci> [foo
<interactive>:1:4: parse error (possibly incorrect indentation)
}}}
The parser error messages for incorrect brackets are awful. A much better
message would be:
{{{
ghci> [foo
<interative>:1:1: bracket opened but not shut
}}}
i.e. refer to bracket issues, and say where the bracket started.
I realise this may be difficult within the current parser, but a simple
post-processor for syntax errors could perhaps detect such errors. Also,
while the { character and reasonably be about indentation, the others are
much less likely to be.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2046>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs