From: kw Date: Wed, 24 Mar 1999 16:52:30 +0000 (+0000) Subject: [project @ 1999-03-24 16:52:30 by kw] X-Git-Tag: Approximately_9120_patches~6357 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1dd8aff2e97484a6a887bc0606d3a2e39cce2fa1;p=ghc-hetmet.git [project @ 1999-03-24 16:52:30 by kw] Fix pretty-printing of FunTys to not throw away NoteTys (eg type synonyms). (re-commit because first mail message didn't get sent) --- diff --git a/ghc/compiler/types/PprType.lhs b/ghc/compiler/types/PprType.lhs index 7c2260f..b3b3163 100644 --- a/ghc/compiler/types/PprType.lhs +++ b/ghc/compiler/types/PprType.lhs @@ -182,7 +182,7 @@ ppr_ty env ctxt_prec ty@(ForAllTy _ _) ppr_ty env ctxt_prec (FunTy ty1 ty2) = maybeParen ctxt_prec fUN_PREC (sep (ppr_ty env fUN_PREC ty1 : pp_rest ty2)) -- we don't want to lose usage annotations or synonyms, - -- so we can't use splitFunTys here. + -- so we mustn't use splitFunTys here. where pp_rest (FunTy ty1 ty2) = pp_codom ty1 : pp_rest ty2 pp_rest ty = [pp_codom ty]