[commit: ghc] ghc-8.0: Improve printing of pattern synonym types (f75e098)
git at git.haskell.org
git at git.haskell.org
Mon Apr 4 14:51:20 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.0
Link : http://ghc.haskell.org/trac/ghc/changeset/f75e098a0e3f7c81cad92e6b52f6c00a6491152d/ghc
>---------------------------------------------------------------
commit f75e098a0e3f7c81cad92e6b52f6c00a6491152d
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
(cherry picked from commit 72bd7f7be7809076f321a6fca90024e3e1bde3cc)
>---------------------------------------------------------------
f75e098a0e3f7c81cad92e6b52f6c00a6491152d
compiler/basicTypes/PatSyn.hs | 27 ++---
compiler/rename/RnNames.hs | 109 ++++++++-------------
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, 148 insertions(+), 91 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 f75e098a0e3f7c81cad92e6b52f6c00a6491152d
More information about the ghc-commits
mailing list