X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcHsType.lhs;h=b7e5b0bee47c56f8f4eac2caa072e75660814946;hp=d90638136c2886f7190137a034f571b4bbf22b33;hb=e656c6e3aaa827c51cd39c9cd9f0a6461db1d4c2;hpb=d69833a03ae2f15dcc0fdc4851e1d92aeed28dc8 diff --git a/compiler/typecheck/TcHsType.lhs b/compiler/typecheck/TcHsType.lhs index d906381..b7e5b0b 100644 --- a/compiler/typecheck/TcHsType.lhs +++ b/compiler/typecheck/TcHsType.lhs @@ -561,8 +561,8 @@ tcLHsConResTy res_ty get_largs (L _ ty) args = get_args ty args get_args (HsAppTy fun arg) args = get_largs fun (arg:args) get_args (HsParTy ty) args = get_largs ty args - get_args (HsOpTy ty1 (L span tc) ty2) args = get_args (HsTyVar tc) (ty1:ty2:args) - get_args ty args = (ty, reverse args) + get_args (HsOpTy ty1 (L span tc) ty2) args = (HsTyVar tc, ty1:ty2:args) + get_args ty args = (ty, args) gadtResCtxt ty = hang (ptext SLIT("In the result type of a data constructor:"))