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/deriving/should_fail/drvfail-foldable-traversable1.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/deriving/should_fail/drvfail-foldable-traversable1.stderr')
-rw-r--r-- | testsuite/tests/deriving/should_fail/drvfail-foldable-traversable1.stderr | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/testsuite/tests/deriving/should_fail/drvfail-foldable-traversable1.stderr b/testsuite/tests/deriving/should_fail/drvfail-foldable-traversable1.stderr index aa115cd10e..f475a3ea5d 100644 --- a/testsuite/tests/deriving/should_fail/drvfail-foldable-traversable1.stderr +++ b/testsuite/tests/deriving/should_fail/drvfail-foldable-traversable1.stderr @@ -1,26 +1,26 @@ -drvfail-foldable-traversable1.hs:9:23: - No instance for (Functor Trivial1) - arising from the 'deriving' clause of a data type declaration - Possible fix: - use a standalone 'deriving instance' declaration, - so you can specify the instance context yourself - When deriving the instance for (Traversable Trivial1) +drvfail-foldable-traversable1.hs:9:23: error: + • No instance for ‘Functor Trivial1’ + arising from the 'deriving' clause of a data type declaration + Possible fix: + use a standalone 'deriving instance' declaration, + so you can specify the instance context yourself + • When deriving the instance for (Traversable Trivial1) -drvfail-foldable-traversable1.hs:13:22: - No instance for (Foldable Trivial2) - arising from the 'deriving' clause of a data type declaration - Possible fix: - use a standalone 'deriving instance' declaration, - so you can specify the instance context yourself - When deriving the instance for (Traversable Trivial2) +drvfail-foldable-traversable1.hs:13:22: error: + • No instance for ‘Foldable Trivial2’ + arising from the 'deriving' clause of a data type declaration + Possible fix: + use a standalone 'deriving instance' declaration, + so you can specify the instance context yourself + • When deriving the instance for (Traversable Trivial2) -drvfail-foldable-traversable1.hs:17:22: - Can't make a derived instance of ‘Foldable Infinite’: - Constructor ‘Infinite’ must not contain function types - In the data declaration for ‘Infinite’ +drvfail-foldable-traversable1.hs:17:22: error: + • Can't make a derived instance of ‘Foldable Infinite’: + Constructor ‘Infinite’ must not contain function types + • In the data declaration for ‘Infinite’ -drvfail-foldable-traversable1.hs:21:22: - Can't make a derived instance of ‘Traversable (Cont r)’: - Constructor ‘Cont’ must not contain function types - In the data declaration for ‘Cont’ +drvfail-foldable-traversable1.hs:21:22: error: + • Can't make a derived instance of ‘Traversable (Cont r)’: + Constructor ‘Cont’ must not contain function types + • In the data declaration for ‘Cont’ |