From 8168b42a95ddf37c56958955eef065eb8747470f Mon Sep 17 00:00:00 2001 From: Vladislav Zavialov Date: Wed, 30 Oct 2019 08:44:34 +0300 Subject: Whitespace-sensitive bang patterns (#1087, #17162) This patch implements a part of GHC Proposal #229 that covers five operators: * the bang operator (!) * the tilde operator (~) * the at operator (@) * the dollar operator ($) * the double dollar operator ($$) Based on surrounding whitespace, these operators are disambiguated into bang patterns, lazy patterns, strictness annotations, type applications, splices, and typed splices. This patch doesn't cover the (-) operator or the -Woperator-whitespace warning, which are left as future work. --- testsuite/tests/th/T7532.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite/tests/th/T7532.stderr') diff --git a/testsuite/tests/th/T7532.stderr b/testsuite/tests/th/T7532.stderr index baaf04f3f5..d807c37db1 100644 --- a/testsuite/tests/th/T7532.stderr +++ b/testsuite/tests/th/T7532.stderr @@ -3,7 +3,7 @@ instance C Bool where data D Bool = T7532.MkD -T7532.hs:11:3-7: Splicing declarations +T7532.hs:11:2-8: Splicing declarations bang' ======> instance C Int where -- cgit v1.2.1