X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcCanonical.lhs;h=b9edd5f046a703728f251c9173492ac0015ed94b;hb=ef6d82a4e1d4ba4884c322be85cff291e017f0e6;hp=9c7bba91b164ecac36c19d402bef5556ff717a4c;hpb=5688fe994cff4cc70b717918bdbccaaf5236f3af;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcCanonical.lhs b/compiler/typecheck/TcCanonical.lhs index 9c7bba9..b9edd5f 100644 --- a/compiler/typecheck/TcCanonical.lhs +++ b/compiler/typecheck/TcCanonical.lhs @@ -317,10 +317,6 @@ happen. newSCWorkFromFlavored :: EvVar -> CtFlavor -> Class -> [Xi] -> TcS CanonicalCts -- Returns superclasses, see Note [Adding superclasses] newSCWorkFromFlavored ev orig_flavor cls xis - | Given loc <- orig_flavor -- Very important! - , NoScSkol <- ctLocOrigin loc - = return emptyCCan - | otherwise = do { let (tyvars, sc_theta, _, _) = classBigSig cls sc_theta1 = substTheta (zipTopTvSubst tyvars xis) sc_theta ; sc_vars <- zipWithM inst_one sc_theta1 [0..]