[commit: ghc] wip/T3384: Add HsSyn prettyprinter tests (660bb54)

git at git.haskell.org git at git.haskell.org
Sun Nov 13 21:05:30 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T3384
Link       : http://ghc.haskell.org/trac/ghc/changeset/660bb54189b2c4a5effe90240c74bc1f48f98af9/ghc

>---------------------------------------------------------------

commit 660bb54189b2c4a5effe90240c74bc1f48f98af9
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


>---------------------------------------------------------------

660bb54189b2c4a5effe90240c74bc1f48f98af9
 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/.gitignore                 |   7 +
 testsuite/tests/printer/Makefile                   |  35 +++
 testsuite/tests/printer/Ppr001.hs                  |   7 +
 testsuite/tests/printer/Ppr002.hs                  |  46 ++++
 testsuite/tests/printer/Ppr003.hs                  |  12 +
 testsuite/tests/printer/Ppr004.hs                  |  81 +++++++
 testsuite/tests/printer/Ppr005.hs                  |  13 ++
 testsuite/tests/printer/Ppr006.hs                  | 258 +++++++++++++++++++++
 testsuite/tests/printer/Ppr007.hs                  |   8 +
 testsuite/tests/printer/all.T                      |   7 +
 .../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 +++
 utils/check-ppr/ghc.mk                             |  18 ++
 25 files changed, 845 insertions(+), 80 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 660bb54189b2c4a5effe90240c74bc1f48f98af9


More information about the ghc-commits mailing list