summaryrefslogtreecommitdiff
path: root/testsuite/tests/warnings/should_fail/Colour.stderr
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-08-24 17:20:01 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2021-08-24 17:23:58 +0100
commit71e8094d3855d7c3a105ba5655f7995f94b84832 (patch)
tree7528cc4edadce0f757e5ca4a43beb7f93a0160f5 /testsuite/tests/warnings/should_fail/Colour.stderr
parentfdb2bfab19f538c43b8138751da73a9b024a62a8 (diff)
downloadhaskell-71e8094d3855d7c3a105ba5655f7995f94b84832.tar.gz
Fix colourised output in error messageswip/t20276
This fixes a small mistake in 4dc681c7c0345ee8ae268749d98b419dabf6a3bc which forced the dump rather than user style for error messages. In particular, this change replaced `defaultUserStyle` with `log_default_dump_context` rather than `log_default_user_context` which meant the PprStyle was PprDump rather than PprUser for error messages. https://gitlab.haskell.org/ghc/ghc/-/commit/4dc681c7c0345ee8ae268749d98b419dabf6a3bc?expanded=1&page=4#b62120081f64009b94c12d04ded5c68870d8c647_285_405 Fixes #20276
Diffstat (limited to 'testsuite/tests/warnings/should_fail/Colour.stderr')
-rw-r--r--testsuite/tests/warnings/should_fail/Colour.stderr5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/warnings/should_fail/Colour.stderr b/testsuite/tests/warnings/should_fail/Colour.stderr
new file mode 100644
index 0000000000..8631313a7b
--- /dev/null
+++ b/testsuite/tests/warnings/should_fail/Colour.stderr
@@ -0,0 +1,5 @@
+
+Colour.hs:1:8: error:
+ • Couldn't match expected type ‘IO ()’ with actual type ‘()’
+ • In the expression: () :: IO ()
+ In an equation for ‘main’: main = () :: IO ()