summaryrefslogtreecommitdiff
path: root/testsuite/tests/module
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2019-10-07 13:57:59 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-30 07:36:50 -0400
commit3e7569bcd4a88ba45d2c40b0904c587c2edf4972 (patch)
tree26fb12e13649adebffd4aa11fe33c51fc68ce28e /testsuite/tests/module
parent93ff91978be67920c7e3657c077ca14c5d6c09bc (diff)
downloadhaskell-3e7569bcd4a88ba45d2c40b0904c587c2edf4972.tar.gz
Whitespace forward compatibility for proposal #229
GHC Proposal #229 changes the lexical rules of Haskell, which may require slight whitespace adjustments in certain cases. This patch changes formatting in a few places in GHC and its testsuite in a way that enables it to compile under the proposed rules.
Diffstat (limited to 'testsuite/tests/module')
-rw-r--r--testsuite/tests/module/mod70.hs2
-rw-r--r--testsuite/tests/module/mod70.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/module/mod70.hs b/testsuite/tests/module/mod70.hs
index cb7d51fe3b..954f39f353 100644
--- a/testsuite/tests/module/mod70.hs
+++ b/testsuite/tests/module/mod70.hs
@@ -1,3 +1,3 @@
-- !!! Illegal ~ in expression
module M where
-f x = x~1
+f x = x ~1
diff --git a/testsuite/tests/module/mod70.stderr b/testsuite/tests/module/mod70.stderr
index 616ef12376..093f166ebd 100644
--- a/testsuite/tests/module/mod70.stderr
+++ b/testsuite/tests/module/mod70.stderr
@@ -1,2 +1,2 @@
-mod70.hs:3:8: error: Pattern syntax in expression context: ~1
+mod70.hs:3:9: error: Pattern syntax in expression context: ~1