Skip to content

Inconsistent parsing of lifted list constructor

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?

state 432 contains 1 shift/reduce conflicts.

        atype -> SIMPLEQUOTE '[' . comma_types0 ']'         (rule 318) 
        sysdcon -> '[' . ']'                                (rule 613) 

    Conflict: ']' (empty comma_types0 reudes)

TODO: Why? 
Trac metadata
Trac field Value
Version 7.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC alanz
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information