Skip to content
  • Simon Peyton Jones's avatar
    Be careful to instantiate kind variables when dealing with functional dependencies · 969f8b72
    Simon Peyton Jones authored
    There were really two bugs
      a) When the fundep fires we must apply the matching
         substitution to the kinds of the remaining type vars
         (This happens in FunDeps.checkClsFD, when we create meta_tvs)
    
      b) When instantiating the un-matched type variables we must
         instantiate their kinds properly
         (This happens in TcSMonad.instFlexiTcS)
    
    This fixes #6068 and #6015 (second reported bug).
    969f8b72