Improve printing of pattern synonym types
authorRik Steenkamp <rik@ewps.nl>
Sat, 2 Apr 2016 19:39:10 +0000 (20:39 +0100)
committerMatthew Pickering <matthewtpickering@gmail.com>
Sat, 2 Apr 2016 21:40:39 +0000 (22:40 +0100)
commit72bd7f7be7809076f321a6fca90024e3e1bde3cc
treecd2249b637e57e1f2bac97ba23cbd64d94bf4bfa
parent38068913c13fa64bd776fab6cf0e971c1a18b54d
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
compiler/basicTypes/PatSyn.hs
compiler/rename/RnNames.hs
compiler/typecheck/TcPatSyn.hs
compiler/typecheck/TcRnTypes.hs
testsuite/tests/patsyn/should_compile/T11213.hs [new file with mode: 0644]
testsuite/tests/patsyn/should_compile/T11213.stderr [new file with mode: 0644]
testsuite/tests/patsyn/should_compile/all.T
utils/haddock