X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypes%2FCoercion.lhs;h=e17d0b007275a8e95fb4a75d8fdb7fc5c9dafdff;hp=672deae68be2163872948f37a7d084f5d69dac93;hb=ac704fcac946590eef0ec91ae19f3b47d779a75f;hpb=28d732c362e13e58d653b3dc15fd376c3f0c54c2 diff --git a/compiler/types/Coercion.lhs b/compiler/types/Coercion.lhs index 672deae..e17d0b0 100644 --- a/compiler/types/Coercion.lhs +++ b/compiler/types/Coercion.lhs @@ -39,7 +39,7 @@ module Coercion ( import TypeRep import Type import TyCon -import Var hiding (isCoVar) +import Var import Name import OccName import PrelNames @@ -91,9 +91,6 @@ splitCoercionKind_maybe co | Just co' <- kindView co = splitCoercionKind_maybe c splitCoercionKind_maybe (PredTy (EqPred ty1 ty2)) = Just (ty1, ty2) splitCoercionKind_maybe other = Nothing -isCoVar :: Var -> Bool -isCoVar tv = isTyVar tv && isCoercionKind (tyVarKind tv) - type Coercion = Type type CoercionKind = Kind -- A CoercionKind is always of form (ty1 :=: ty2)