[GHC] #10299: Inconsistent parsing of lifted list constructor
#10299: Inconsistent parsing of lifted list constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- The notes for `HsType` explain that `'[]` should parse as a `HsExplicitListTy` but it currently parses as a `HsTyVar`. I think this shift-reduce conflict might be to blame? {{{#!hs state 432 contains 1 shift/reduce conflicts. atype -> SIMPLEQUOTE '[' . comma_types0 ']' (rule 318) sysdcon -> '[' . ']' (rule 613) Conflict: ']' (empty comma_types0 reudes) TODO: Why? }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10299> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10299: Inconsistent parsing of lifted list constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: D840 -------------------------------------+------------------------------------- Changes (by mpickering): * status: new => patch * differential: => D840 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10299#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10299: Inconsistent parsing of lifted list constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: D840 -------------------------------------+------------------------------------- Changes (by mpickering): * milestone: => 7.10.2 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10299#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10299: Inconsistent parsing of lifted list constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: Phab:D840 -------------------------------------+------------------------------------- Changes (by alanz): * differential: D840 => Phab:D840 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10299#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10299: Inconsistent parsing of lifted list constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: Phab:D840 -------------------------------------+------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"caeae1a33e28745b51d952b034e253d3e51e0605/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="caeae1a33e28745b51d952b034e253d3e51e0605" Correct parsing of lifted empty list constructor See #10299 Previously `'[]` was parsed to a `HsTyVar` rather than a `HsExplicitListTy`. This patch fixes the shift-reduce conflict which caused this problem. Reviewed By: alanz, austin Differential Revision: https://phabricator.haskell.org/D840 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10299#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10299: Inconsistent parsing of lifted list constructor -------------------------------------+------------------------------------- Reporter: mpickering | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: Phab:D840 -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Merged to `ghc-7.10`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10299#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC