Skip to content
  • Simon Peyton Jones's avatar
    canCFunEqCan: use isTcReflexiveCo (not isTcReflCo) · 83ca9bb2
    Simon Peyton Jones authored
    As Trac #15577 showed, it was possible for a /homo-kinded/
    constraint to trigger the /hetero-kinded/ branch of canCFunEqCan,
    and that triggered an infinite loop.
    
    The fix is easier, but there remains a deeper questions: why is
    the flattener producing giant refexive coercions?
    
    (cherry picked from commit 2e226a46)
    83ca9bb2