[commit: ghc] master: Improve treatment of sectioned holes (4d41e92)

git at git.haskell.org git at git.haskell.org
Thu Dec 21 00:44:34 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4d41e9212d1fdf109f2d0174d204644446f5874c/ghc

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

commit 4d41e9212d1fdf109f2d0174d204644446f5874c
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date:   Wed Dec 20 19:25:53 2017 -0500

    Improve treatment of sectioned holes
    
    Summary:
    Previously, GHC was pretty-printing left-section holes
    incorrectly and not parsing right-sectioned holes at all. This patch
    fixes both problems.
    
    Test Plan: make test TEST=T14590
    
    Reviewers: bgamari, simonpj
    
    Reviewed By: simonpj
    
    Subscribers: simonpj, rwbarton, thomie, mpickering, carter
    
    GHC Trac Issues: #14590
    
    Differential Revision: https://phabricator.haskell.org/D4273


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

4d41e9212d1fdf109f2d0174d204644446f5874c
 compiler/hsSyn/HsExpr.hs                           |   4 +
 compiler/parser/Parser.y                           |  10 +-
 testsuite/tests/typecheck/should_compile/T14590.hs |   7 +
 .../tests/typecheck/should_compile/T14590.stderr   | 264 +++++++++++++++++++++
 testsuite/tests/typecheck/should_compile/all.T     |   1 +
 5 files changed, 283 insertions(+), 3 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 4d41e9212d1fdf109f2d0174d204644446f5874c


More information about the ghc-commits mailing list