X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftypes%2FType.lhs;fp=ghc%2Fcompiler%2Ftypes%2FType.lhs;h=d3b87ffdcc38b6f33d5e46dc2045f03c4ffc38c0;hb=b783b8644d142d12c832e261ba60bc81c19c3a12;hp=d7fa64dba18c9dc7b748314b16005783a41ad059;hpb=39b0063ef571bcc2c7bd08fd484521158d31f8a7;p=ghc-hetmet.git diff --git a/ghc/compiler/types/Type.lhs b/ghc/compiler/types/Type.lhs index d7fa64d..d3b87ff 100644 --- a/ghc/compiler/types/Type.lhs +++ b/ghc/compiler/types/Type.lhs @@ -961,7 +961,7 @@ cmpTypeX env _ _ = LT ------------- cmpTypesX :: RnEnv2 -> [Type] -> [Type] -> Ordering cmpTypesX env [] [] = EQ -cmpTypesX env (t1:tys1) (t2:tys2) = cmpTypeX env t1 t2 `compare` cmpTypesX env tys1 tys2 +cmpTypesX env (t1:tys1) (t2:tys2) = cmpTypeX env t1 t2 `thenCmp` cmpTypesX env tys1 tys2 cmpTypesX env [] tys = LT cmpTypesX env ty [] = GT @@ -972,7 +972,7 @@ cmpPredX env (IParam n1 ty1) (IParam n2 ty2) = (n1 `compare` n2) `thenCmp` cmpTy -- This comparison is used exclusively (I think) for the -- finite map built in TcSimplify cmpPredX env (ClassP c1 tys1) (ClassP c2 tys2) = (c1 `compare` c2) `thenCmp` cmpTypesX env tys1 tys2 -cmpPredX env (IParam _ _) (ClassP _ _) = LT +cmpPredX env (IParam _ _) (ClassP _ _) = LT cmpPredX env (ClassP _ _) (IParam _ _) = GT \end{code}