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/ghci/scripts/Defer02.stderr | |
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/ghci/scripts/Defer02.stderr')
-rw-r--r-- | testsuite/tests/ghci/scripts/Defer02.stderr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/tests/ghci/scripts/Defer02.stderr b/testsuite/tests/ghci/scripts/Defer02.stderr index 3477f47b17..bb787b30c1 100644 --- a/testsuite/tests/ghci/scripts/Defer02.stderr +++ b/testsuite/tests/ghci/scripts/Defer02.stderr @@ -80,7 +80,7 @@ Defer01.hs:50:5: warning: [-Wdeferred-type-errors (in -Wdefault)] In an equation for ‘a’: a = 'p' (deferred type error) *** Exception: Defer01.hs:18:9: error: - • No instance for (Eq B) arising from a use of ‘==’ + • No instance for ‘Eq B’ arising from a use of ‘==’ • In the expression: x == x In an equation for ‘b’: b x = x == x (deferred type error) @@ -93,7 +93,7 @@ Defer01.hs:50:5: warning: [-Wdeferred-type-errors (in -Wdefault)] In the first argument of ‘print’, namely ‘(c (C2 True))’ In the expression: print (c (C2 True)) *** Exception: Defer01.hs:28:5: error: - • No instance for (Num (a -> a)) arising from the literal ‘1’ + • No instance for ‘Num (a -> a)’ arising from the literal ‘1’ (maybe you haven't applied a function to enough arguments?) • In the expression: 1 In an equation for ‘d’: d = 1 @@ -129,7 +129,7 @@ Defer01.hs:50:5: warning: [-Wdeferred-type-errors (in -Wdefault)] i :: a -> () (bound at Defer01.hs:39:1) (deferred type error) *** Exception: Defer01.hs:43:5: error: - • No instance for (MyClass a1) arising from a use of ‘myOp’ + • No instance for ‘MyClass a1’ arising from a use of ‘myOp’ • In the expression: myOp 23 In an equation for ‘j’: j = myOp 23 (deferred type error) |