[commit: ghc] master: Improve printing of pattern synonym types (72bd7f7)

git at git.haskell.org git at git.haskell.org
Sat Apr 2 21:38:56 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/72bd7f7be7809076f321a6fca90024e3e1bde3cc/ghc

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

commit 72bd7f7be7809076f321a6fca90024e3e1bde3cc
Author: Rik Steenkamp <rik at ewps.nl>
Date:   Sat Apr 2 20:39:10 2016 +0100

    Improve printing of pattern synonym types
    
    Add the function `pprPatSynType :: PatSyn -> SDoc` for printing pattern
    synonym types, and remove the ambiguous `patSynType` function. Also,
    the types in a `PatSyn` are now tidy.
    
    Haddock submodule updated to reflect the removal of `patSynType` by
    mpickering.
    
    Fixes: #11213.
    
    Reviewers: goldfire, simonpj, austin, mpickering, bgamari
    
    Reviewed By: simonpj, mpickering
    
    Subscribers: bollmann, simonpj, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1896
    
    GHC Trac Issues: #11213


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

72bd7f7be7809076f321a6fca90024e3e1bde3cc
 compiler/basicTypes/PatSyn.hs                      | 27 ++++++-----
 compiler/rename/RnNames.hs                         | 54 ++++++++++++----------
 compiler/typecheck/TcPatSyn.hs                     | 21 ++++++---
 compiler/typecheck/TcRnTypes.hs                    |  4 +-
 testsuite/tests/patsyn/should_compile/T11213.hs    | 29 ++++++++++++
 .../tests/patsyn/should_compile/T11213.stderr      | 46 ++++++++++++++++++
 testsuite/tests/patsyn/should_compile/all.T        |  1 +
 utils/haddock                                      |  2 +-
 8 files changed, 139 insertions(+), 45 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 72bd7f7be7809076f321a6fca90024e3e1bde3cc


More information about the ghc-commits mailing list