diff options
author | Michał Sośnicki <sosnicki.michal@gmail.com> | 2015-11-18 16:02:53 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-11-18 17:31:20 +0100 |
commit | c61759d5917996a10b06a286eb5b776e4069e35c (patch) | |
tree | 7fc3b9a29cec4f98e28278d23e5000743d0d3956 /testsuite/tests/roles/should_compile/Roles4.stderr | |
parent | 07eb258dfcbf8a67e4e931397128b7255356d19e (diff) | |
download | haskell-c61759d5917996a10b06a286eb5b776e4069e35c.tar.gz |
Fix inconsistent pretty-printing of type families
After the changes, the three functions used to print type families
were identical, so they are refactored into one.
Original RHSs of data instance declarations are recreated and
printed in user error messages.
RHSs containing representation TyCons are printed in the
Coercion Axioms section in a typechecker dump.
Add vbar to the list of SDocs exported by Outputable.
Replace all text "|" docs with it.
Fixes #10839
Reviewers: goldfire, jstolarek, austin, bgamari
Reviewed By: jstolarek
Subscribers: jstolarek, thomie
Differential Revision: https://phabricator.haskell.org/D1441
GHC Trac Issues: #10839
Diffstat (limited to 'testsuite/tests/roles/should_compile/Roles4.stderr')
-rw-r--r-- | testsuite/tests/roles/should_compile/Roles4.stderr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/tests/roles/should_compile/Roles4.stderr b/testsuite/tests/roles/should_compile/Roles4.stderr index bcc1f44460..67b75cde86 100644 --- a/testsuite/tests/roles/should_compile/Roles4.stderr +++ b/testsuite/tests/roles/should_compile/Roles4.stderr @@ -8,8 +8,9 @@ TYPE CONSTRUCTORS {-# MINIMAL meth3 #-} type Syn1 a = [a] COERCION AXIOMS - axiom Roles4.NTCo:C1 :: C1 a = a -> a - axiom Roles4.NTCo:C3 :: C3 a = a -> Syn1 a + axiom Roles4.NTCo:C1 :: C1 a = a -> a -- Defined at Roles4.hs:6:1 + axiom Roles4.NTCo:C3 :: + C3 a = a -> Syn1 a -- Defined at Roles4.hs:11:1 Dependent modules: [] Dependent packages: [base-4.9.0.0, ghc-prim-0.5.0.0, integer-gmp-1.0.0.0] |