diff options
author | Swann Moreau <evertedsphere@gmail.com> | 2022-06-30 10:08:07 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-08-19 18:29:21 -0400 |
commit | 51ffd00906d1c75dc72c71ba4216b480996c8ce2 (patch) | |
tree | bad8746acded2a4da4de1ef3a3eb90c51e7f66d9 /testsuite/tests/rename | |
parent | e5567289c576a76f62bd78bd823a824c7ca83de6 (diff) | |
download | haskell-51ffd00906d1c75dc72c71ba4216b480996c8ce2.tar.gz |
Print constraints in quotes (#21167)
This patch improves the uniformity of error message formatting by
printing constraints in quotes, as we do for types.
Fix #21167
Diffstat (limited to 'testsuite/tests/rename')
-rw-r--r-- | testsuite/tests/rename/should_fail/T19843h.stderr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/tests/rename/should_fail/T19843h.stderr b/testsuite/tests/rename/should_fail/T19843h.stderr index f7eeb9d5e9..963740ca35 100644 --- a/testsuite/tests/rename/should_fail/T19843h.stderr +++ b/testsuite/tests/rename/should_fail/T19843h.stderr @@ -1,31 +1,31 @@ T19843h.hs:14:7: error: - • No instance for (GHC.Records.HasField "mup" r4 a4) + • No instance for ‘GHC.Records.HasField "mup" r4 a4’ arising from selecting the field ‘mup’ Perhaps use ‘mop’ (line 11) • In the expression: undefined.mup In an equation for ‘foo’: foo = undefined.mup T19843h.hs:16:7: error: - • No instance for (GHC.Records.HasField "traverse" r3 a3) + • No instance for ‘GHC.Records.HasField "traverse" r3 a3’ arising from selecting the field ‘traverse’ • In the expression: undefined.traverse In an equation for ‘bar’: bar = undefined.traverse T19843h.hs:18:7: error: - • No instance for (GHC.Records.HasField "getSum" r2 a2) + • No instance for ‘GHC.Records.HasField "getSum" r2 a2’ arising from selecting the field ‘getSum’ • In the expression: undefined.getSum In an equation for ‘baz’: baz = undefined.getSum T19843h.hs:20:8: error: - • No instance for (GHC.Records.HasField "getAlt" r1 a1) + • No instance for ‘GHC.Records.HasField "getAlt" r1 a1’ arising from selecting the field ‘getAlt’ • In the expression: undefined.getAlt In an equation for ‘quux’: quux = undefined.getAlt T19843h.hs:24:8: error: - • No instance for (GHC.Records.HasField "getAll" r0 a0) + • No instance for ‘GHC.Records.HasField "getAll" r0 a0’ arising from selecting the field ‘getAll’ Perhaps use ‘getAlt’ (imported from Data.Monoid) Perhaps you want to add ‘getAll’ to the import list |