Skip to content
  • Thomas Miedema's avatar
    Parser: revert some error messages to what they were before 7.10 · e2b579e8
    Thomas Miedema authored
    Among doing other things, Phab:D201 (bc2289e1)
    tried to improve the error messages thrown by the parser. For example a missing
    else clause now prints "parse error in if statement: else clause empty" instead
    of "parse error (possibly incorrect indentation or mismatched brackets)".
    
    Some error messages got much worse however (see tests), and the result seems to
    be a net negative. Although not entirely satisfactory, this commits therefore
    reverts those parser changes.
    
    Reviewed By: austin
    
    Differential Revision: https://phabricator.haskell.org/D1309
    
    GHC Trac Issues: #10498
    e2b579e8