Skip to content
  • Simon Peyton Jones's avatar
    When comparing Case expressions, take account of empty alternatives · ebcad764
    Simon Peyton Jones authored
    After the recent change that allows empty case alternatives, we
    were accidentally saying that these two were equal:
       Case x _ Int  []
       Case x _ Bool []
    Usually if the alternatives are equal so is the result type -- but
    not if the alternatives are empty!
    
    There are two places to fix:
      CoreUtils.eqExpr
      TrieMap with CoreExpr key
    
    Fixes #6096, #6097
    ebcad764