summaryrefslogtreecommitdiff
path: root/testsuite/tests/module
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2021-09-06 21:46:51 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-09-17 09:37:41 -0400
commit9300c736d58fdb8b3e2961f57aa9c4f117fb9c6f (patch)
tree998159aafe3bb9c89f8983ec2ad08994fcb5807e /testsuite/tests/module
parent0d996d029590d1523f2db64b608456e2228a19dc (diff)
downloadhaskell-9300c736d58fdb8b3e2961f57aa9c4f117fb9c6f.tar.gz
EPA: correctly capture comments between 'where' and binds
In the following foo = x where -- do stuff doStuff = do stuff The "-- do stuff" comment is captured in the HsValBinds. Closes #20297
Diffstat (limited to 'testsuite/tests/module')
-rw-r--r--testsuite/tests/module/mod185.stderr3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/module/mod185.stderr b/testsuite/tests/module/mod185.stderr
index 62427a5746..a0f771ac43 100644
--- a/testsuite/tests/module/mod185.stderr
+++ b/testsuite/tests/module/mod185.stderr
@@ -97,7 +97,8 @@
(NoSrcStrict))
[]
(GRHSs
- (NoExtField)
+ (EpaComments
+ [])
[(L
{ mod185.hs:5:6-24 }
(GRHS