From: simonpj@microsoft.com Date: Sun, 22 Apr 2007 21:10:49 +0000 (+0000) Subject: Improve depth-cutoff for printing HsSyn in error messages X-Git-Tag: 2007-05-06~134 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d38a30cb5e7a946f7a5e02fb6e601d2d37ea4374;hp=d38a30cb5e7a946f7a5e02fb6e601d2d37ea4374;p=ghc-hetmet.git Improve depth-cutoff for printing HsSyn in error messages MERGE TO STABLE The "user style" in Outputable allows us to elide large expressions when printing HsSyn, printing "..." instead. This is done by calling Outputable.pprDeeper. But there was no mechanism for trimming very long lists, which occur when using do-notation or explicit lists. This patch fixes the problem, by adding Outputable.pprDeeperList. I also made some of the pretty-printing in HsExpr rather more vigorous about increasing the depth; in particular, pprParendExpr. This should make debug prints shorter. ---