• Ryan Scott's avatar
    Fix #14588 by checking for more bang patterns · 9caf40e9
    Ryan Scott authored
    Summary:
    Commit 37299536
    inadvertently removed a check in the parser which rejected
    let-bindings with bang patterns, leading to #14588. This fixes it by
    creating a `hintBangPat` function to perform this check, and
    sprinkling it in the right places.
    
    Test Plan: make test TEST=T14588
    
    Reviewers: bgamari, alanz, simonpj
    
    Reviewed By: bgamari, simonpj
    
    Subscribers: rwbarton, thomie, mpickering, carter
    
    GHC Trac Issues: #14588
    
    Differential Revision: https://phabricator.haskell.org/D4270
    9caf40e9
all.T 4.66 KB