summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/exactprint/Test20239.stderr
blob: bada9845ab8f856f35f5d38e2d855dd24f4d098c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327

==================== Parser AST ====================

(L
 { Test20239.hs:1:1 }
 (HsModule
  (EpAnn
   (Anchor
    { Test20239.hs:1:1 }
    (UnchangedAnchor))
   (AnnsModule
    [(AddEpAnn AnnModule (EpaSpan { Test20239.hs:1:1-6 }))
    ,(AddEpAnn AnnWhere (EpaSpan { Test20239.hs:1:18-22 }))]
    (AnnList
     (Nothing)
     (Nothing)
     (Nothing)
     []
     []))
   (EpaCommentsBalanced
    [(L
      (Anchor
       { Test20239.hs:3:1-28 }
       (UnchangedAnchor))
      (EpaComment
       (EpaLineComment
        "-- | Leading Haddock Comment")
       { Test20239.hs:1:18-22 }))]
    [(L
      (Anchor
       { Test20239.hs:8:1 }
       (UnchangedAnchor))
      (EpaComment
       (EpaEofComment)
       { Test20239.hs:7:34-63 }))]))
  (VirtualBraces
   (1))
  (Just
   (L
    (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:1:8-16 })
    {ModuleName: Test20239}))
  (Nothing)
  []
  [(L
    (SrcSpanAnn (EpAnn
                 (Anchor
                  { Test20239.hs:(4,1)-(6,86) }
                  (UnchangedAnchor))
                 (AnnListItem
                  [])
                 (EpaComments
                  [(L
                    (Anchor
                     { Test20239.hs:7:34-63 }
                     (UnchangedAnchor))
                    (EpaComment
                     (EpaLineComment
                      "-- ^ Run any arbitrary IO code")
                     { Test20239.hs:6:86 }))])) { Test20239.hs:(4,1)-(6,86) })
    (InstD
     (NoExtField)
     (DataFamInstD
      (NoExtField)
      (DataFamInstDecl
       (FamEqn
        (EpAnn
         (Anchor
          { Test20239.hs:(4,1)-(6,86) }
          (UnchangedAnchor))
         [(AddEpAnn AnnData (EpaSpan { Test20239.hs:4:1-4 }))
         ,(AddEpAnn AnnInstance (EpaSpan { Test20239.hs:4:6-13 }))
         ,(AddEpAnn AnnEqual (EpaSpan { Test20239.hs:4:34 }))]
         (EpaComments
          [(L
            (Anchor
             { Test20239.hs:5:34-70 }
             (UnchangedAnchor))
            (EpaComment
             (EpaLineComment
              "-- ^ Run a query against the database")
             { Test20239.hs:4:51-55 }))]))
        (L
         (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:4:15-20 })
         (Unqual
          {OccName: Method}))
        (HsOuterImplicit
         (NoExtField))
        [(HsValArg
          (L
           (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:4:22-32 })
           (HsTyVar
            (EpAnn
             (Anchor
              { Test20239.hs:4:22-32 }
              (UnchangedAnchor))
             []
             (EpaComments
              []))
            (NotPromoted)
            (L
             (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:4:22-32 })
             (Unqual
              {OccName: PGMigration})))))]
        (Prefix)
        (HsDataDefn
         (NoExtField)
         (DataType)
         (Nothing)
         (Nothing)
         (Nothing)
         [(L
           (SrcSpanAnn (EpAnn
                        (Anchor
                         { Test20239.hs:4:36-55 }
                         (UnchangedAnchor))
                        (AnnListItem
                         [(AddVbarAnn
                           (EpaSpan { Test20239.hs:6:34 }))])
                        (EpaComments
                         [])) { Test20239.hs:4:36-55 })
           (ConDeclH98
            (EpAnn
             (Anchor
              { Test20239.hs:4:36-55 }
              (UnchangedAnchor))
             []
             (EpaComments
              []))
            (L
             (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:4:36-49 })
             (Unqual
              {OccName: MigrationQuery}))
            (False)
            []
            (Nothing)
            (PrefixCon
             []
             [(HsScaled
               (HsLinearArrow
                (HsPct1
                 (L
                  (NoTokenLoc)
                  (HsTok))
                 (L
                  (NoTokenLoc)
                  (HsNormalTok))))
               (L
                (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:4:51-55 })
                (HsTyVar
                 (EpAnn
                  (Anchor
                   { Test20239.hs:4:51-55 }
                   (UnchangedAnchor))
                  []
                  (EpaComments
                   []))
                 (NotPromoted)
                 (L
                  (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:4:51-55 })
                  (Unqual
                   {OccName: Query})))))])
            (Nothing)))
         ,(L
           (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:36-86 })
           (ConDeclH98
            (EpAnn
             (Anchor
              { Test20239.hs:6:36-86 }
              (UnchangedAnchor))
             []
             (EpaComments
              []))
            (L
             (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:36-48 })
             (Unqual
              {OccName: MigrationCode}))
            (False)
            []
            (Nothing)
            (PrefixCon
             []
             [(HsScaled
               (HsLinearArrow
                (HsPct1
                 (L
                  (NoTokenLoc)
                  (HsTok))
                 (L
                  (NoTokenLoc)
                  (HsNormalTok))))
               (L
                (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:50-86 })
                (HsParTy
                 (EpAnn
                  (Anchor
                   { Test20239.hs:6:50 }
                   (UnchangedAnchor))
                  (AnnParen
                   (AnnParens)
                   (EpaSpan { Test20239.hs:6:50 })
                   (EpaSpan { Test20239.hs:6:86 }))
                  (EpaComments
                   []))
                 (L
                  (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:51-85 })
                  (HsFunTy
                   (EpAnn
                    (Anchor
                     { Test20239.hs:6:51-60 }
                     (UnchangedAnchor))
                    (NoEpAnns)
                    (EpaComments
                     []))
                   (HsUnrestrictedArrow
                    (L
                     (TokenLoc
                      (EpaSpan { Test20239.hs:6:62-63 }))
                     (HsNormalTok)))
                   (L
                    (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:51-60 })
                    (HsTyVar
                     (EpAnn
                      (Anchor
                       { Test20239.hs:6:51-60 }
                       (UnchangedAnchor))
                      []
                      (EpaComments
                       []))
                     (NotPromoted)
                     (L
                      (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:51-60 })
                      (Unqual
                       {OccName: Connection}))))
                   (L
                    (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:65-85 })
                    (HsAppTy
                     (NoExtField)
                     (L
                      (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:65-66 })
                      (HsTyVar
                       (EpAnn
                        (Anchor
                         { Test20239.hs:6:65-66 }
                         (UnchangedAnchor))
                        []
                        (EpaComments
                         []))
                       (NotPromoted)
                       (L
                        (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:65-66 })
                        (Unqual
                         {OccName: IO}))))
                     (L
                      (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:68-85 })
                      (HsParTy
                       (EpAnn
                        (Anchor
                         { Test20239.hs:6:68 }
                         (UnchangedAnchor))
                        (AnnParen
                         (AnnParens)
                         (EpaSpan { Test20239.hs:6:68 })
                         (EpaSpan { Test20239.hs:6:85 }))
                        (EpaComments
                         []))
                       (L
                        (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:69-84 })
                        (HsAppTy
                         (NoExtField)
                         (L
                          (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:69-81 })
                          (HsAppTy
                           (NoExtField)
                           (L
                            (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:69-74 })
                            (HsTyVar
                             (EpAnn
                              (Anchor
                               { Test20239.hs:6:69-74 }
                               (UnchangedAnchor))
                              []
                              (EpaComments
                               []))
                             (NotPromoted)
                             (L
                              (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:69-74 })
                              (Unqual
                               {OccName: Either}))))
                           (L
                            (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:76-81 })
                            (HsTyVar
                             (EpAnn
                              (Anchor
                               { Test20239.hs:6:76-81 }
                               (UnchangedAnchor))
                              []
                              (EpaComments
                               []))
                             (NotPromoted)
                             (L
                              (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:76-81 })
                              (Unqual
                               {OccName: String}))))))
                         (L
                          (SrcSpanAnn (EpAnnNotUsed) { Test20239.hs:6:83-84 })
                          (HsTupleTy
                           (EpAnn
                            (Anchor
                             { Test20239.hs:6:83 }
                             (UnchangedAnchor))
                            (AnnParen
                             (AnnParens)
                             (EpaSpan { Test20239.hs:6:83 })
                             (EpaSpan { Test20239.hs:6:84 }))
                            (EpaComments
                             []))
                           (HsBoxedOrConstraintTuple)
                           [])))))))))))))])
            (Nothing)))]
         []))))))]
  (Nothing)
  (Nothing)))



Test20239.hs:4:15:
    Not in scope: type constructor or class ‘Method’