Skip to content
  • seraphime's avatar
    Treat duplicate pattern synonym signatures as an error · 2a3af152
    seraphime authored and Ben Gamari's avatar Ben Gamari committed
    Fixes issue T12165 by banning duplicate pattern synonyms
    signatures. This seems to me the best solution because:
    
       1) it is coherent with the way we treat other duplicate signatures
    
       2) the typechecker currently doesn't try to apply a second
           signature to a pattern to see if it matches, probably because
           it assumes there is no more than one signature per object.
    
    Test Plan: ./validate
    
    Reviewers: goldfire, austin, mpickering, bgamari
    
    Reviewed By: mpickering, bgamari
    
    Subscribers: mpickering, thomie
    
    Differential Revision: https://phabricator.haskell.org/D2361
    
    GHC Trac Issues: #12165
    2a3af152