summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2018-01-12 16:45:48 -0500
committerBen Gamari <ben@smart-cactus.org>2018-01-12 16:45:51 -0500
commite20046a0c4a552c5037797cf720fb34877bc2d21 (patch)
treeae4e5a12d4fa6dabbc4d535b458f297dd812e332 /testsuite/tests/ghc-api
parentb2f10d8981bebe44f1ab39e417818dfa2d50639d (diff)
downloadhaskell-e20046a0c4a552c5037797cf720fb34877bc2d21.tar.gz
Support constructor Haddocks in more places
This adds support for adding Haddocks on individual non-record fields of regular (and GADT) constructors. The following now parses just fine with `-haddock` enabled: data Foo = Baz -- ^ doc on the `Baz` constructor Int -- ^ doc on the `Int` field of `Baz` String -- ^ doc on the `String` field of `Baz` | Int -- ^ doc on the `Int` field of the `:*` constructor :* -- ^ doc on the `:*` constructor String -- ^ doc on the `String` field of the `:*` constructor | Boa -- ^ doc on the `Boa` record constructor { y :: () } The change is backwards compatible: if there is only one doc and it occurs on the last field, it is lifted to apply to the whole constructor (as before). Reviewers: bgamari, alanz Subscribers: rwbarton, thomie, mpickering, carter Differential Revision: https://phabricator.haskell.org/D4292
Diffstat (limited to 'testsuite/tests/ghc-api')
-rw-r--r--testsuite/tests/ghc-api/annotations/T10255.stdout1
-rw-r--r--testsuite/tests/ghc-api/annotations/T10268.stdout1
-rw-r--r--testsuite/tests/ghc-api/annotations/T10278.stdout5
-rw-r--r--testsuite/tests/ghc-api/annotations/T10312.stdout6
-rw-r--r--testsuite/tests/ghc-api/annotations/T10354.stdout4
-rw-r--r--testsuite/tests/ghc-api/annotations/T10399.stdout3
-rw-r--r--testsuite/tests/ghc-api/annotations/T10598.stdout1
-rw-r--r--testsuite/tests/ghc-api/annotations/T11018.stdout8
-rw-r--r--testsuite/tests/ghc-api/annotations/T12417.stdout2
-rw-r--r--testsuite/tests/ghc-api/annotations/boolFormula.stdout22
-rw-r--r--testsuite/tests/ghc-api/annotations/exampleTest.stdout1
-rw-r--r--testsuite/tests/ghc-api/annotations/listcomps.stdout2
-rw-r--r--testsuite/tests/ghc-api/annotations/parseTree.stdout2
13 files changed, 47 insertions, 11 deletions
diff --git a/testsuite/tests/ghc-api/annotations/T10255.stdout b/testsuite/tests/ghc-api/annotations/T10255.stdout
index 494136d48c..994c76fc81 100644
--- a/testsuite/tests/ghc-api/annotations/T10255.stdout
+++ b/testsuite/tests/ghc-api/annotations/T10255.stdout
@@ -16,7 +16,6 @@
((Test10255.hs:6:6-26,AnnDcolon), [Test10255.hs:6:8-9]),
((Test10255.hs:6:11-26,AnnCloseP), [Test10255.hs:6:26]),
((Test10255.hs:6:11-26,AnnOpenP), [Test10255.hs:6:11]),
-((Test10255.hs:6:12-18,AnnRarrow), [Test10255.hs:6:20-21]),
((Test10255.hs:6:12-25,AnnRarrow), [Test10255.hs:6:20-21]),
((<no location info>,AnnEofPos), [Test10255.hs:8:1])
]
diff --git a/testsuite/tests/ghc-api/annotations/T10268.stdout b/testsuite/tests/ghc-api/annotations/T10268.stdout
index 78337330cb..399393d653 100644
--- a/testsuite/tests/ghc-api/annotations/T10268.stdout
+++ b/testsuite/tests/ghc-api/annotations/T10268.stdout
@@ -12,6 +12,7 @@
((Test10268.hs:5:6-17,AnnThIdSplice), [Test10268.hs:5:6-17]),
((Test10268.hs:7:1-27,AnnDcolon), [Test10268.hs:7:6-7]),
((Test10268.hs:7:1-27,AnnSemi), [Test10268.hs:8:1]),
+((Test10268.hs:7:9,AnnRarrow), [Test10268.hs:7:11-12]),
((Test10268.hs:7:9-27,AnnRarrow), [Test10268.hs:7:11-12]),
((Test10268.hs:7:22-25,AnnCloseS), [Test10268.hs:7:25]),
((Test10268.hs:7:22-25,AnnOpenS), [Test10268.hs:7:23]),
diff --git a/testsuite/tests/ghc-api/annotations/T10278.stdout b/testsuite/tests/ghc-api/annotations/T10278.stdout
index 46767575b1..dcaf80d0c5 100644
--- a/testsuite/tests/ghc-api/annotations/T10278.stdout
+++ b/testsuite/tests/ghc-api/annotations/T10278.stdout
@@ -12,7 +12,9 @@
((Test10278.hs:4:19-61,AnnForall), [Test10278.hs:4:19-24]),
((Test10278.hs:4:31-61,AnnDot), [Test10278.hs:4:42]),
((Test10278.hs:4:31-61,AnnForall), [Test10278.hs:4:31-36]),
+((Test10278.hs:4:44-46,AnnRarrow), [Test10278.hs:4:48-49]),
((Test10278.hs:4:44-61,AnnRarrow), [Test10278.hs:4:48-49]),
+((Test10278.hs:4:51-54,AnnRarrow), [Test10278.hs:4:56-57]),
((Test10278.hs:4:51-61,AnnRarrow), [Test10278.hs:4:56-57]),
((Test10278.hs:5:1-26,AnnEqual), [Test10278.hs:5:16]),
((Test10278.hs:5:1-26,AnnFunId), [Test10278.hs:5:1-14]),
@@ -25,17 +27,18 @@
((Test10278.hs:7:21-24,AnnComma), [Test10278.hs:7:25]),
((Test10278.hs:(8,19)-(10,58),AnnCloseP), [Test10278.hs:10:58]),
((Test10278.hs:(8,19)-(10,58),AnnOpenP), [Test10278.hs:8:19]),
+((Test10278.hs:(8,19)-(10,58),AnnRarrow), [Test10278.hs:11:23-24]),
((Test10278.hs:(8,19)-(11,33),AnnRarrow), [Test10278.hs:11:23-24]),
((Test10278.hs:(8,20)-(10,57),AnnDot), [Test10278.hs:8:30]),
((Test10278.hs:(8,20)-(10,57),AnnForall), [Test10278.hs:8:20-25]),
((Test10278.hs:(8,32)-(10,57),AnnDot), [Test10278.hs:8:43]),
((Test10278.hs:(8,32)-(10,57),AnnForall), [Test10278.hs:8:32-37]),
-((Test10278.hs:9:27-50,AnnRarrow), [Test10278.hs:10:31-32]),
((Test10278.hs:(9,27)-(10,57),AnnRarrow), [Test10278.hs:10:31-32]),
((Test10278.hs:9:38-50,AnnCloseP), [Test10278.hs:9:50]),
((Test10278.hs:9:38-50,AnnOpenP), [Test10278.hs:9:38]),
((Test10278.hs:10:45-57,AnnCloseP), [Test10278.hs:10:57]),
((Test10278.hs:10:45-57,AnnOpenP), [Test10278.hs:10:45]),
+((Test10278.hs:11:26,AnnRarrow), [Test10278.hs:11:28-29]),
((Test10278.hs:11:26-33,AnnRarrow), [Test10278.hs:11:28-29]),
((Test10278.hs:11:31-33,AnnCloseS), [Test10278.hs:11:33]),
((Test10278.hs:11:31-33,AnnOpenS), [Test10278.hs:11:31]),
diff --git a/testsuite/tests/ghc-api/annotations/T10312.stdout b/testsuite/tests/ghc-api/annotations/T10312.stdout
index c8dff60b10..30879b3dd1 100644
--- a/testsuite/tests/ghc-api/annotations/T10312.stdout
+++ b/testsuite/tests/ghc-api/annotations/T10312.stdout
@@ -139,9 +139,11 @@
((Test10312.hs:57:13-44,AnnComma), [Test10312.hs:58:11]),
((Test10312.hs:61:1-40,AnnDcolon), [Test10312.hs:61:8-9]),
((Test10312.hs:61:1-40,AnnSemi), [Test10312.hs:62:1]),
+((Test10312.hs:61:11-13,AnnRarrow), [Test10312.hs:61:15-16]),
((Test10312.hs:61:11-40,AnnRarrow), [Test10312.hs:61:15-16]),
((Test10312.hs:61:18-28,AnnCloseS), [Test10312.hs:61:28]),
((Test10312.hs:61:18-28,AnnOpenS), [Test10312.hs:61:18]),
+((Test10312.hs:61:18-28,AnnRarrow), [Test10312.hs:61:30-31]),
((Test10312.hs:61:18-40,AnnRarrow), [Test10312.hs:61:30-31]),
((Test10312.hs:61:33-40,AnnCloseS), [Test10312.hs:61:40]),
((Test10312.hs:61:33-40,AnnOpenS), [Test10312.hs:61:33]),
@@ -167,11 +169,12 @@
((Test10312.hs:68:19-23,AnnDarrow), [Test10312.hs:68:25-26]),
((Test10312.hs:68:28-35,AnnCloseP), [Test10312.hs:68:35]),
((Test10312.hs:68:28-35,AnnOpenP), [Test10312.hs:68:28]),
+((Test10312.hs:68:28-35,AnnRarrow), [Test10312.hs:68:37-38]),
((Test10312.hs:68:28-51,AnnRarrow), [Test10312.hs:68:37-38]),
-((Test10312.hs:68:29,AnnRarrow), [Test10312.hs:68:31-32]),
((Test10312.hs:68:29-34,AnnRarrow), [Test10312.hs:68:31-32]),
((Test10312.hs:68:40-42,AnnCloseS), [Test10312.hs:68:42]),
((Test10312.hs:68:40-42,AnnOpenS), [Test10312.hs:68:40]),
+((Test10312.hs:68:40-42,AnnRarrow), [Test10312.hs:68:44-45]),
((Test10312.hs:68:40-51,AnnRarrow), [Test10312.hs:68:44-45]),
((Test10312.hs:68:47-51,AnnCloseS), [Test10312.hs:68:51]),
((Test10312.hs:68:47-51,AnnOpenS), [Test10312.hs:68:47]),
@@ -190,6 +193,7 @@
((Test10312.hs:71:1-50,AnnSemi), [Test10312.hs:72:1]),
((Test10312.hs:71:19-29,AnnCloseS), [Test10312.hs:71:29]),
((Test10312.hs:71:19-29,AnnOpenS), [Test10312.hs:71:19]),
+((Test10312.hs:71:19-29,AnnRarrow), [Test10312.hs:71:31-32]),
((Test10312.hs:71:19-50,AnnRarrow), [Test10312.hs:71:31-32]),
((Test10312.hs:71:34-50,AnnCloseS), [Test10312.hs:71:50]),
((Test10312.hs:71:34-50,AnnOpenS), [Test10312.hs:71:34]),
diff --git a/testsuite/tests/ghc-api/annotations/T10354.stdout b/testsuite/tests/ghc-api/annotations/T10354.stdout
index d9094c9eb1..2e07948323 100644
--- a/testsuite/tests/ghc-api/annotations/T10354.stdout
+++ b/testsuite/tests/ghc-api/annotations/T10354.stdout
@@ -14,7 +14,9 @@
((Test10354.hs:4:7-15,AnnCloseP), [Test10354.hs:4:15]),
((Test10354.hs:4:7-15,AnnOpenP), [Test10354.hs:4:7]),
((Test10354.hs:4:8-11,AnnComma), [Test10354.hs:4:12]),
+((Test10354.hs:4:21,AnnRarrow), [Test10354.hs:4:23-24]),
((Test10354.hs:4:21-34,AnnRarrow), [Test10354.hs:4:23-24]),
+((Test10354.hs:4:26,AnnRarrow), [Test10354.hs:4:28-29]),
((Test10354.hs:4:26-34,AnnRarrow), [Test10354.hs:4:28-29]),
((Test10354.hs:5:1-14,AnnEqual), [Test10354.hs:5:7]),
((Test10354.hs:5:1-14,AnnFunId), [Test10354.hs:5:1]),
@@ -26,6 +28,7 @@
((Test10354.hs:7:8-12,AnnDarrow), [Test10354.hs:7:14-15]),
((Test10354.hs:7:8-12,AnnOpenP), [Test10354.hs:7:8, Test10354.hs:7:8]),
((Test10354.hs:7:8-12,AnnUnit), [Test10354.hs:7:8-12]),
+((Test10354.hs:7:17,AnnRarrow), [Test10354.hs:7:18-19]),
((Test10354.hs:7:17-24,AnnRarrow), [Test10354.hs:7:18-19]),
((Test10354.hs:8:1-15,AnnEqual), [Test10354.hs:8:5]),
((Test10354.hs:8:1-15,AnnFunId), [Test10354.hs:8:1-3]),
@@ -33,6 +36,7 @@
((Test10354.hs:10:1-23,AnnDcolon), [Test10354.hs:10:5-6]),
((Test10354.hs:10:1-23,AnnSemi), [Test10354.hs:11:1]),
((Test10354.hs:10:8,AnnDarrow), [Test10354.hs:10:10-11]),
+((Test10354.hs:10:13,AnnRarrow), [Test10354.hs:10:15-16]),
((Test10354.hs:10:13-23,AnnRarrow), [Test10354.hs:10:15-16]),
((Test10354.hs:11:1-15,AnnEqual), [Test10354.hs:11:5]),
((Test10354.hs:11:1-15,AnnFunId), [Test10354.hs:11:1-3]),
diff --git a/testsuite/tests/ghc-api/annotations/T10399.stdout b/testsuite/tests/ghc-api/annotations/T10399.stdout
index e290be4e67..76c0f7c598 100644
--- a/testsuite/tests/ghc-api/annotations/T10399.stdout
+++ b/testsuite/tests/ghc-api/annotations/T10399.stdout
@@ -52,11 +52,8 @@
((Test10399.hs:16:28-43,AnnDarrow), [Test10399.hs:16:45-46]),
((Test10399.hs:16:28-43,AnnOpenP), [Test10399.hs:16:28, Test10399.hs:16:28]),
((Test10399.hs:16:30-33,AnnComma), [Test10399.hs:16:34]),
-((Test10399.hs:16:48,AnnRarrow), [Test10399.hs:16:50-51]),
((Test10399.hs:(16,48)-(17,68),AnnRarrow), [Test10399.hs:16:50-51]),
-((Test10399.hs:16:53-66,AnnRarrow), [Test10399.hs:17:45-46]),
((Test10399.hs:(16,53)-(17,68),AnnRarrow), [Test10399.hs:17:45-46]),
-((Test10399.hs:17:48,AnnRarrow), [Test10399.hs:17:50-51]),
((Test10399.hs:17:48-68,AnnRarrow), [Test10399.hs:17:50-51]),
((Test10399.hs:17:66-68,AnnCloseS), [Test10399.hs:17:68]),
((Test10399.hs:17:66-68,AnnOpenS), [Test10399.hs:17:66]),
diff --git a/testsuite/tests/ghc-api/annotations/T10598.stdout b/testsuite/tests/ghc-api/annotations/T10598.stdout
index 21029da26d..af1ac3be58 100644
--- a/testsuite/tests/ghc-api/annotations/T10598.stdout
+++ b/testsuite/tests/ghc-api/annotations/T10598.stdout
@@ -11,6 +11,7 @@
((Test10598.hs:(7,1)-(9,10),AnnWhere), [Test10598.hs:7:11-15]),
((Test10598.hs:8:3-21,AnnDcolon), [Test10598.hs:8:5-6]),
((Test10598.hs:8:3-21,AnnSemi), [Test10598.hs:9:3]),
+((Test10598.hs:8:8-14,AnnRarrow), [Test10598.hs:8:16-17]),
((Test10598.hs:8:8-21,AnnRarrow), [Test10598.hs:8:16-17]),
((Test10598.hs:9:3-10,AnnEqual), [Test10598.hs:9:7]),
((Test10598.hs:9:3-10,AnnFunId), [Test10598.hs:9:3]),
diff --git a/testsuite/tests/ghc-api/annotations/T11018.stdout b/testsuite/tests/ghc-api/annotations/T11018.stdout
index 011867e0d8..78b76400db 100644
--- a/testsuite/tests/ghc-api/annotations/T11018.stdout
+++ b/testsuite/tests/ghc-api/annotations/T11018.stdout
@@ -10,6 +10,7 @@
((Test11018.hs:6:1-36,AnnSemi), [Test11018.hs:7:1]),
((Test11018.hs:6:15-36,AnnDot), [Test11018.hs:6:24]),
((Test11018.hs:6:15-36,AnnForall), [Test11018.hs:6:15-20]),
+((Test11018.hs:6:26,AnnRarrow), [Test11018.hs:6:28-29]),
((Test11018.hs:6:26-36,AnnRarrow), [Test11018.hs:6:28-29]),
((Test11018.hs:(7,1)-(9,10),AnnEqual), [Test11018.hs:7:14]),
((Test11018.hs:(7,1)-(9,10),AnnFunId), [Test11018.hs:7:1-10]),
@@ -23,7 +24,6 @@
((Test11018.hs:12:21-32,AnnCloseP), [Test11018.hs:12:32]),
((Test11018.hs:12:21-32,AnnDcolonU), [Test11018.hs:12:24]),
((Test11018.hs:12:21-32,AnnOpenP), [Test11018.hs:12:21]),
-((Test11018.hs:12:26,AnnRarrow), [Test11018.hs:12:28-29]),
((Test11018.hs:12:26-31,AnnRarrow), [Test11018.hs:12:28-29]),
((Test11018.hs:(13,16)-(15,7),AnnCloseC), [Test11018.hs:15:7]),
((Test11018.hs:(13,16)-(15,7),AnnOpenC), [Test11018.hs:13:16]),
@@ -70,6 +70,7 @@
((Test11018.hs:23:1-49,AnnDcolon), [Test11018.hs:23:3-4]),
((Test11018.hs:23:1-49,AnnSemi), [Test11018.hs:24:1]),
((Test11018.hs:23:6-17,AnnDarrow), [Test11018.hs:23:19-20]),
+((Test11018.hs:23:22-24,AnnRarrow), [Test11018.hs:23:26-27]),
((Test11018.hs:23:22-49,AnnRarrow), [Test11018.hs:23:26-27]),
((Test11018.hs:23:31-45,AnnCloseP), [Test11018.hs:23:45]),
((Test11018.hs:23:31-45,AnnOpenP), [Test11018.hs:23:31]),
@@ -87,6 +88,7 @@
((Test11018.hs:26:1-50,AnnDcolon), [Test11018.hs:26:4-5]),
((Test11018.hs:26:1-50,AnnSemi), [Test11018.hs:27:1]),
((Test11018.hs:26:7-18,AnnDarrow), [Test11018.hs:26:20-21]),
+((Test11018.hs:26:23-25,AnnRarrow), [Test11018.hs:26:27-28]),
((Test11018.hs:26:23-50,AnnRarrow), [Test11018.hs:26:27-28]),
((Test11018.hs:26:32-46,AnnCloseP), [Test11018.hs:26:46]),
((Test11018.hs:26:32-46,AnnOpenP), [Test11018.hs:26:32]),
@@ -105,6 +107,7 @@
((Test11018.hs:31:1-26,AnnSemi), [Test11018.hs:32:1]),
((Test11018.hs:31:11-26,AnnDot), [Test11018.hs:31:15]),
((Test11018.hs:31:11-26,AnnForallU), [Test11018.hs:31:11]),
+((Test11018.hs:31:17,AnnRarrowU), [Test11018.hs:31:19]),
((Test11018.hs:31:17-26,AnnRarrowU), [Test11018.hs:31:19]),
((Test11018.hs:(32,1)-(34,10),AnnEqual), [Test11018.hs:32:11]),
((Test11018.hs:(32,1)-(34,10),AnnFunId), [Test11018.hs:32:1-7]),
@@ -118,7 +121,6 @@
((Test11018.hs:37:22-32,AnnCloseP), [Test11018.hs:37:32]),
((Test11018.hs:37:22-32,AnnDcolonU), [Test11018.hs:37:25]),
((Test11018.hs:37:22-32,AnnOpenP), [Test11018.hs:37:22]),
-((Test11018.hs:37:27,AnnRarrowU), [Test11018.hs:37:29]),
((Test11018.hs:37:27-31,AnnRarrowU), [Test11018.hs:37:29]),
((Test11018.hs:(38,17)-(40,7),AnnCloseC), [Test11018.hs:40:7]),
((Test11018.hs:(38,17)-(40,7),AnnOpenC), [Test11018.hs:38:17]),
@@ -165,6 +167,7 @@
((Test11018.hs:48:1-49,AnnDcolon), [Test11018.hs:48:4-5]),
((Test11018.hs:48:1-49,AnnSemi), [Test11018.hs:49:1]),
((Test11018.hs:48:7-18,AnnDarrowU), [Test11018.hs:48:20]),
+((Test11018.hs:48:22-24,AnnRarrow), [Test11018.hs:48:26-27]),
((Test11018.hs:48:22-49,AnnRarrow), [Test11018.hs:48:26-27]),
((Test11018.hs:48:31-45,AnnCloseP), [Test11018.hs:48:45]),
((Test11018.hs:48:31-45,AnnOpenP), [Test11018.hs:48:31]),
@@ -182,6 +185,7 @@
((Test11018.hs:51:1-50,AnnDcolon), [Test11018.hs:51:5-6]),
((Test11018.hs:51:1-50,AnnSemi), [Test11018.hs:52:1]),
((Test11018.hs:51:8-19,AnnDarrowU), [Test11018.hs:51:21]),
+((Test11018.hs:51:23-25,AnnRarrow), [Test11018.hs:51:27-28]),
((Test11018.hs:51:23-50,AnnRarrow), [Test11018.hs:51:27-28]),
((Test11018.hs:51:32-46,AnnCloseP), [Test11018.hs:51:46]),
((Test11018.hs:51:32-46,AnnOpenP), [Test11018.hs:51:32]),
diff --git a/testsuite/tests/ghc-api/annotations/T12417.stdout b/testsuite/tests/ghc-api/annotations/T12417.stdout
index 3f61650d84..7e642dee66 100644
--- a/testsuite/tests/ghc-api/annotations/T12417.stdout
+++ b/testsuite/tests/ghc-api/annotations/T12417.stdout
@@ -26,6 +26,7 @@
((Test12417.hs:12:16-31,AnnDarrow), [Test12417.hs:12:33-34]),
((Test12417.hs:12:16-31,AnnOpenP), [Test12417.hs:12:16, Test12417.hs:12:16]),
((Test12417.hs:12:17-22,AnnComma), [Test12417.hs:12:23]),
+((Test12417.hs:12:36-46,AnnRarrow), [Test12417.hs:12:48-49]),
((Test12417.hs:12:36-56,AnnRarrow), [Test12417.hs:12:48-49]),
((Test12417.hs:13:1-48,AnnEqual), [Test12417.hs:13:27]),
((Test12417.hs:13:1-48,AnnFunId), [Test12417.hs:13:1-11]),
@@ -54,6 +55,7 @@
((Test12417.hs:16:60-63,AnnVbar), [Test12417.hs:16:65]),
((Test12417.hs:18:1-26,AnnDcolon), [Test12417.hs:18:13-14]),
((Test12417.hs:18:1-26,AnnSemi), [Test12417.hs:19:1]),
+((Test12417.hs:18:16,AnnRarrow), [Test12417.hs:18:18-19]),
((Test12417.hs:18:16-26,AnnRarrow), [Test12417.hs:18:18-19]),
((Test12417.hs:19:1-52,AnnEqual), [Test12417.hs:19:33]),
((Test12417.hs:19:1-52,AnnFunId), [Test12417.hs:19:1-11]),
diff --git a/testsuite/tests/ghc-api/annotations/boolFormula.stdout b/testsuite/tests/ghc-api/annotations/boolFormula.stdout
index c3caae10ea..d816f04eb3 100644
--- a/testsuite/tests/ghc-api/annotations/boolFormula.stdout
+++ b/testsuite/tests/ghc-api/annotations/boolFormula.stdout
@@ -11,42 +11,54 @@
((TestBoolFormula.hs:(3,1)-(19,9),AnnWhere), [TestBoolFormula.hs:3:17-21]),
((TestBoolFormula.hs:4:5-25,AnnDcolon), [TestBoolFormula.hs:4:9-10]),
((TestBoolFormula.hs:4:5-25,AnnSemi), [TestBoolFormula.hs:5:5]),
+((TestBoolFormula.hs:4:12,AnnRarrow), [TestBoolFormula.hs:4:14-15]),
((TestBoolFormula.hs:4:12-25,AnnRarrow), [TestBoolFormula.hs:4:14-15]),
+((TestBoolFormula.hs:4:17,AnnRarrow), [TestBoolFormula.hs:4:19-20]),
((TestBoolFormula.hs:4:17-25,AnnRarrow), [TestBoolFormula.hs:4:19-20]),
((TestBoolFormula.hs:5:5-19,AnnEqual), [TestBoolFormula.hs:5:9]),
((TestBoolFormula.hs:5:5-19,AnnFunId), [TestBoolFormula.hs:5:5-7]),
((TestBoolFormula.hs:5:5-19,AnnSemi), [TestBoolFormula.hs:6:5]),
((TestBoolFormula.hs:6:5-25,AnnDcolon), [TestBoolFormula.hs:6:9-10]),
((TestBoolFormula.hs:6:5-25,AnnSemi), [TestBoolFormula.hs:7:5]),
+((TestBoolFormula.hs:6:12,AnnRarrow), [TestBoolFormula.hs:6:14-15]),
((TestBoolFormula.hs:6:12-25,AnnRarrow), [TestBoolFormula.hs:6:14-15]),
+((TestBoolFormula.hs:6:17,AnnRarrow), [TestBoolFormula.hs:6:19-20]),
((TestBoolFormula.hs:6:17-25,AnnRarrow), [TestBoolFormula.hs:6:19-20]),
((TestBoolFormula.hs:7:5-19,AnnEqual), [TestBoolFormula.hs:7:9]),
((TestBoolFormula.hs:7:5-19,AnnFunId), [TestBoolFormula.hs:7:5-7]),
((TestBoolFormula.hs:7:5-19,AnnSemi), [TestBoolFormula.hs:8:5]),
((TestBoolFormula.hs:8:5-25,AnnDcolon), [TestBoolFormula.hs:8:9-10]),
((TestBoolFormula.hs:8:5-25,AnnSemi), [TestBoolFormula.hs:9:5]),
+((TestBoolFormula.hs:8:12,AnnRarrow), [TestBoolFormula.hs:8:14-15]),
((TestBoolFormula.hs:8:12-25,AnnRarrow), [TestBoolFormula.hs:8:14-15]),
+((TestBoolFormula.hs:8:17,AnnRarrow), [TestBoolFormula.hs:8:19-20]),
((TestBoolFormula.hs:8:17-25,AnnRarrow), [TestBoolFormula.hs:8:19-20]),
((TestBoolFormula.hs:9:5-19,AnnEqual), [TestBoolFormula.hs:9:9]),
((TestBoolFormula.hs:9:5-19,AnnFunId), [TestBoolFormula.hs:9:5-7]),
((TestBoolFormula.hs:9:5-19,AnnSemi), [TestBoolFormula.hs:10:5]),
((TestBoolFormula.hs:10:5-25,AnnDcolon), [TestBoolFormula.hs:10:9-10]),
((TestBoolFormula.hs:10:5-25,AnnSemi), [TestBoolFormula.hs:11:5]),
+((TestBoolFormula.hs:10:12,AnnRarrow), [TestBoolFormula.hs:10:14-15]),
((TestBoolFormula.hs:10:12-25,AnnRarrow), [TestBoolFormula.hs:10:14-15]),
+((TestBoolFormula.hs:10:17,AnnRarrow), [TestBoolFormula.hs:10:19-20]),
((TestBoolFormula.hs:10:17-25,AnnRarrow), [TestBoolFormula.hs:10:19-20]),
((TestBoolFormula.hs:11:5-19,AnnEqual), [TestBoolFormula.hs:11:9]),
((TestBoolFormula.hs:11:5-19,AnnFunId), [TestBoolFormula.hs:11:5-7]),
((TestBoolFormula.hs:11:5-19,AnnSemi), [TestBoolFormula.hs:12:5]),
((TestBoolFormula.hs:12:5-25,AnnDcolon), [TestBoolFormula.hs:12:9-10]),
((TestBoolFormula.hs:12:5-25,AnnSemi), [TestBoolFormula.hs:13:5]),
+((TestBoolFormula.hs:12:12,AnnRarrow), [TestBoolFormula.hs:12:14-15]),
((TestBoolFormula.hs:12:12-25,AnnRarrow), [TestBoolFormula.hs:12:14-15]),
+((TestBoolFormula.hs:12:17,AnnRarrow), [TestBoolFormula.hs:12:19-20]),
((TestBoolFormula.hs:12:17-25,AnnRarrow), [TestBoolFormula.hs:12:19-20]),
((TestBoolFormula.hs:13:5-19,AnnEqual), [TestBoolFormula.hs:13:9]),
((TestBoolFormula.hs:13:5-19,AnnFunId), [TestBoolFormula.hs:13:5-7]),
((TestBoolFormula.hs:13:5-19,AnnSemi), [TestBoolFormula.hs:14:5]),
((TestBoolFormula.hs:14:5-25,AnnDcolon), [TestBoolFormula.hs:14:9-10]),
((TestBoolFormula.hs:14:5-25,AnnSemi), [TestBoolFormula.hs:15:5]),
+((TestBoolFormula.hs:14:12,AnnRarrow), [TestBoolFormula.hs:14:14-15]),
((TestBoolFormula.hs:14:12-25,AnnRarrow), [TestBoolFormula.hs:14:14-15]),
+((TestBoolFormula.hs:14:17,AnnRarrow), [TestBoolFormula.hs:14:19-20]),
((TestBoolFormula.hs:14:17-25,AnnRarrow), [TestBoolFormula.hs:14:19-20]),
((TestBoolFormula.hs:15:5-19,AnnEqual), [TestBoolFormula.hs:15:9]),
((TestBoolFormula.hs:15:5-19,AnnFunId), [TestBoolFormula.hs:15:5-7]),
@@ -71,29 +83,39 @@
((TestBoolFormula.hs:(21,1)-(30,47),AnnWhere), [TestBoolFormula.hs:21:13-17]),
((TestBoolFormula.hs:22:5-25,AnnDcolon), [TestBoolFormula.hs:22:9-10]),
((TestBoolFormula.hs:22:5-25,AnnSemi), [TestBoolFormula.hs:23:5]),
+((TestBoolFormula.hs:22:12,AnnRarrow), [TestBoolFormula.hs:22:14-15]),
((TestBoolFormula.hs:22:12-25,AnnRarrow), [TestBoolFormula.hs:22:14-15]),
+((TestBoolFormula.hs:22:17,AnnRarrow), [TestBoolFormula.hs:22:19-20]),
((TestBoolFormula.hs:22:17-25,AnnRarrow), [TestBoolFormula.hs:22:19-20]),
((TestBoolFormula.hs:23:5-25,AnnDcolon), [TestBoolFormula.hs:23:9-10]),
((TestBoolFormula.hs:23:5-25,AnnSemi), [TestBoolFormula.hs:24:5]),
+((TestBoolFormula.hs:23:12,AnnRarrow), [TestBoolFormula.hs:23:14-15]),
((TestBoolFormula.hs:23:12-25,AnnRarrow), [TestBoolFormula.hs:23:14-15]),
+((TestBoolFormula.hs:23:17,AnnRarrow), [TestBoolFormula.hs:23:19-20]),
((TestBoolFormula.hs:23:17-25,AnnRarrow), [TestBoolFormula.hs:23:19-20]),
((TestBoolFormula.hs:24:5-25,AnnDcolon), [TestBoolFormula.hs:24:9-10]),
((TestBoolFormula.hs:24:5-25,AnnSemi), [TestBoolFormula.hs:25:5]),
+((TestBoolFormula.hs:24:12,AnnRarrow), [TestBoolFormula.hs:24:14-15]),
((TestBoolFormula.hs:24:12-25,AnnRarrow), [TestBoolFormula.hs:24:14-15]),
+((TestBoolFormula.hs:24:17,AnnRarrow), [TestBoolFormula.hs:24:19-20]),
((TestBoolFormula.hs:24:17-25,AnnRarrow), [TestBoolFormula.hs:24:19-20]),
((TestBoolFormula.hs:25:5-19,AnnEqual), [TestBoolFormula.hs:25:9]),
((TestBoolFormula.hs:25:5-19,AnnFunId), [TestBoolFormula.hs:25:5-7]),
((TestBoolFormula.hs:25:5-19,AnnSemi), [TestBoolFormula.hs:26:5]),
((TestBoolFormula.hs:26:5-25,AnnDcolon), [TestBoolFormula.hs:26:9-10]),
((TestBoolFormula.hs:26:5-25,AnnSemi), [TestBoolFormula.hs:27:5]),
+((TestBoolFormula.hs:26:12,AnnRarrow), [TestBoolFormula.hs:26:14-15]),
((TestBoolFormula.hs:26:12-25,AnnRarrow), [TestBoolFormula.hs:26:14-15]),
+((TestBoolFormula.hs:26:17,AnnRarrow), [TestBoolFormula.hs:26:19-20]),
((TestBoolFormula.hs:26:17-25,AnnRarrow), [TestBoolFormula.hs:26:19-20]),
((TestBoolFormula.hs:27:5-19,AnnEqual), [TestBoolFormula.hs:27:9]),
((TestBoolFormula.hs:27:5-19,AnnFunId), [TestBoolFormula.hs:27:5-7]),
((TestBoolFormula.hs:27:5-19,AnnSemi), [TestBoolFormula.hs:28:5]),
((TestBoolFormula.hs:28:5-26,AnnDcolon), [TestBoolFormula.hs:28:10-11]),
((TestBoolFormula.hs:28:5-26,AnnSemi), [TestBoolFormula.hs:29:5]),
+((TestBoolFormula.hs:28:13,AnnRarrow), [TestBoolFormula.hs:28:15-16]),
((TestBoolFormula.hs:28:13-26,AnnRarrow), [TestBoolFormula.hs:28:15-16]),
+((TestBoolFormula.hs:28:18,AnnRarrow), [TestBoolFormula.hs:28:20-21]),
((TestBoolFormula.hs:28:18-26,AnnRarrow), [TestBoolFormula.hs:28:20-21]),
((TestBoolFormula.hs:29:5-20,AnnEqual), [TestBoolFormula.hs:29:10]),
((TestBoolFormula.hs:29:5-20,AnnFunId), [TestBoolFormula.hs:29:5-8]),
diff --git a/testsuite/tests/ghc-api/annotations/exampleTest.stdout b/testsuite/tests/ghc-api/annotations/exampleTest.stdout
index 2cdef957d3..3c7a5af418 100644
--- a/testsuite/tests/ghc-api/annotations/exampleTest.stdout
+++ b/testsuite/tests/ghc-api/annotations/exampleTest.stdout
@@ -64,7 +64,6 @@
((AnnotationTuple.hs:18:1-28,AnnDcolon), [AnnotationTuple.hs:18:20-21]),
((AnnotationTuple.hs:18:1-28,AnnFamily), [AnnotationTuple.hs:18:6-11]),
((AnnotationTuple.hs:18:1-28,AnnSemi), [AnnotationTuple.hs:19:1]),
-((AnnotationTuple.hs:18:23,AnnRarrow), [AnnotationTuple.hs:18:25-26]),
((AnnotationTuple.hs:18:23-28,AnnRarrow), [AnnotationTuple.hs:18:25-26]),
((AnnotationTuple.hs:(20,1)-(24,14),AnnFunId), [AnnotationTuple.hs:20:1-5]),
((AnnotationTuple.hs:(20,1)-(24,14),AnnSemi), [AnnotationTuple.hs:25:1]),
diff --git a/testsuite/tests/ghc-api/annotations/listcomps.stdout b/testsuite/tests/ghc-api/annotations/listcomps.stdout
index 3965257bb3..7b92474efb 100644
--- a/testsuite/tests/ghc-api/annotations/listcomps.stdout
+++ b/testsuite/tests/ghc-api/annotations/listcomps.stdout
@@ -131,6 +131,8 @@
(AK ListComprehensions.hs:24:11-15 AnnOpenS = [ListComprehensions.hs:24:11])
+(AK ListComprehensions.hs:24:11-15 AnnRarrow = [ListComprehensions.hs:24:17-18])
+
(AK ListComprehensions.hs:24:11-27 AnnRarrow = [ListComprehensions.hs:24:17-18])
(AK ListComprehensions.hs:24:20-27 AnnCloseS = [ListComprehensions.hs:24:27])
diff --git a/testsuite/tests/ghc-api/annotations/parseTree.stdout b/testsuite/tests/ghc-api/annotations/parseTree.stdout
index 092ba971d2..e229ba626a 100644
--- a/testsuite/tests/ghc-api/annotations/parseTree.stdout
+++ b/testsuite/tests/ghc-api/annotations/parseTree.stdout
@@ -130,8 +130,6 @@
(AK AnnotationTuple.hs:18:1-28 AnnSemi = [AnnotationTuple.hs:19:1])
-(AK AnnotationTuple.hs:18:23 AnnRarrow = [AnnotationTuple.hs:18:25-26])
-
(AK AnnotationTuple.hs:18:23-28 AnnRarrow = [AnnotationTuple.hs:18:25-26])
(AK AnnotationTuple.hs:(20,1)-(24,14) AnnFunId = [AnnotationTuple.hs:20:1-5])