diff options
author | Eric Kow <eric.kow@gmail.com> | 2012-06-27 12:59:59 +0100 |
---|---|---|
committer | Paolo Capriotti <p.capriotti@gmail.com> | 2012-06-29 18:51:01 +0100 |
commit | b2e89367ff030d1c64a20dfc06be03fe8840d982 (patch) | |
tree | 1daa19dab525d13748656b59a26b394b7176dc7c /compiler | |
parent | 30b5ba9b86610f38da704d6b7426cd776e3fbbe4 (diff) | |
download | haskell-b2e89367ff030d1c64a20dfc06be03fe8840d982.tar.gz |
Parse error: suggest brackets and indentation.
I have observed that whenever GHC tells me that I have possibly
incorrect indentation, the real problem is often that I forgot
to close some sort of bracket.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser/Lexer.x | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x index 116db2526f..114f7f6b32 100644 --- a/compiler/parser/Lexer.x +++ b/compiler/parser/Lexer.x @@ -2002,7 +2002,7 @@ srcParseErr -> MsgDoc srcParseErr buf len = hcat [ if null token - then ptext (sLit "parse error (possibly incorrect indentation)") + then ptext (sLit "parse error (possibly incorrect indentation or mismatched brackets)") else hcat [ptext (sLit "parse error on input "), char '`', text token, char '\''] ] |