[GHC] #16270: Report multiple errors during parsing
#16270: Report multiple errors during parsing -------------------------------------+------------------------------------- Reporter: int-index | Owner: (none) Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 (Parser) | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Parsing failures currently abort the parsing process (with `parseErrorSDoc`) even if it can continue and report multiple errors at once. This is easy to fix by creating a new combinator, `addError`, similar to `addWarning`, which would add the error message to the accumulator but continue parsing. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16270> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#16270: Report multiple errors during parsing -------------------------------------+------------------------------------- Reporter: int-index | Owner: (none) Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 (Parser) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by int-index): * status: new => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16270#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#16270: Report multiple errors during parsing -------------------------------------+------------------------------------- Reporter: int-index | Owner: (none) Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 (Parser) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Marge Bot <ben+marge-bot@…>): In [changeset:"f37efb11b957a21f3048f7005a234f96350ff938/ghc" f37efb11/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="f37efb11b957a21f3048f7005a234f96350ff938" Lexer: turn some fatal errors into non-fatal ones The following previously fatal lexer errors are now non-fatal: * errors about enabling `LambdaCase` * errors about enabling `NumericUnderscores` * errors about having valid characters in primitive strings See #16270 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16270#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC