• Alan Zimmerman's avatar
    ApiAnnotations: misplaced AnnComma for squals production · 71361267
    Alan Zimmerman authored
    Summary:
    The parser production for squals has
    
        : squals ',' transformqual
                 {% addAnnotation (gl $ last $ unLoc $1) AnnComma (gl $2) >>
                    ams (sLL $1 $> ()) (fst $ unLoc $3) >>
                    return (sLL $1 $> [sLL $1 $> ((snd $ unLoc $3) (reverse (unLoc $1)))]) }
    
    This attaches the comma to the wrong part of the squals, as it is
    generated in reverse order.
    
    Test Plan: ./validate
    
    Reviewers: hvr, austin
    
    Reviewed By: austin
    
    Subscribers: bgamari, thomie, mpickering
    
    Differential Revision: https://phabricator.haskell.org/D846
    
    GHC Trac Issues: #10312
    71361267
Parser.y 162 KB