[GHC] #10299: Inconsistent parsing of lifted list constructor

GHC ghc-devs at haskell.org
Tue Apr 14 09:50:00 UTC 2015


#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


More information about the ghc-tickets mailing list