• Simon Peyton Jones's avatar
    Fix error recovery for pattern synonyms · 149d7912
    Simon Peyton Jones authored
    As Trac #15289 showed, we were carrying on after a type error
    in a pattern synonym, and then crashing.  This patch improves
    error handling for pattern synonyms.
    
    I also moved a bit of code from TcBinds into TcPatSyn, which
    helpfully narrows the API.
    
    (cherry picked from commit 2896082e)
    149d7912
TcBinds.hs 72.6 KB