[commit: ghc] wip/T3384: Add HsSyn prettyprinter tests (8cf5f48)
git at git.haskell.org
git at git.haskell.org
Wed Nov 9 21:19:34 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T3384
Link : http://ghc.haskell.org/trac/ghc/changeset/8cf5f4898a314194324600860e2b8e67fd450a42/ghc
>---------------------------------------------------------------
commit 8cf5f4898a314194324600860e2b8e67fd450a42
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date: Tue Nov 8 21:37:48 2016 +0200
Add HsSyn prettyprinter tests
Add prettyprinter tests, which take a file, parse it, pretty print it,
re-parse the pretty printed version and then compare the original and
new ASTs (ignoring locations)
Trac issue: #3384
>---------------------------------------------------------------
8cf5f4898a314194324600860e2b8e67fd450a42
compiler/hsSyn/HsExpr.hs | 9 +-
ghc.mk | 3 +
testsuite/mk/boilerplate.mk | 1 +
testsuite/tests/boxy/Base1.stderr | 4 +-
testsuite/tests/generics/GenDerivOutput.stderr | 32 +--
testsuite/tests/generics/GenDerivOutput1_0.stderr | 8 +-
testsuite/tests/generics/GenDerivOutput1_1.stderr | 65 +++----
.../tests/generics/T10604/T10604_deriving.stderr | 32 +--
testsuite/tests/printer/Makefile | 22 +++
testsuite/tests/printer/Ppr001.hs | 7 +
testsuite/tests/printer/Ppr002.hs | 46 +++++
testsuite/tests/printer/all.T | 4 +
.../tests/typecheck/should_compile/T11339.stderr | 4 +-
.../tests/typecheck/should_fail/T12124.stderr | 4 +-
.../tests/typecheck/should_fail/T7748a.stderr | 4 +-
utils/check-ppr/Main.hs | 216 +++++++++++++++++++++
utils/check-ppr/README | 19 ++
utils/check-ppr/check-ppr.cabal | 32 +++
{driver/ghc => utils/check-ppr}/ghc.mk | 18 +-
19 files changed, 438 insertions(+), 92 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 8cf5f4898a314194324600860e2b8e67fd450a42
More information about the ghc-commits
mailing list