summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/DumpRenamedAst.stderr
blob: 9d6cc6e9539f0ddbfad546a03f2dbc2a31afc95e (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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435

==================== Renamer ====================

(Just
 ((,,,)
  (HsGroup
   (XValBindsLR
    (NValBinds
     [((,)
       (NonRecursive)
       {Bag(Located (HsBind Name)):
        [({ DumpRenamedAst.hs:18:1-23 }
          (FunBind
           ({ DumpRenamedAst.hs:18:1-4 }
            {Name: DumpRenamedAst.main})
           (MG
            ({ DumpRenamedAst.hs:18:1-23 }
             [({ DumpRenamedAst.hs:18:1-23 }
               (Match
                (FunRhs
                 ({ DumpRenamedAst.hs:18:1-4 }
                  {Name: DumpRenamedAst.main})
                 (Prefix)
                 (NoSrcStrict))
                []
                (GRHSs
                 [({ DumpRenamedAst.hs:18:6-23 }
                   (GRHS
                    []
                    ({ DumpRenamedAst.hs:18:8-23 }
                     (HsApp
                      (PlaceHolder)
                      ({ DumpRenamedAst.hs:18:8-15 }
                       (HsVar
                        (PlaceHolder)
                        ({ DumpRenamedAst.hs:18:8-15 }
                         {Name: System.IO.putStrLn})))
                      ({ DumpRenamedAst.hs:18:17-23 }
                       (HsLit
                        (PlaceHolder)
                        (HsString
                         (SourceText
                          "\"hello\"")
                         {FastString: "hello"})))))))]
                 ({ <no location info> }
                  (EmptyLocalBinds)))))])
            []
            (PlaceHolder)
            (FromSource))
           (WpHole)
           {NameSet:
            []}
           []))]})]
     []))
   []
   [(TyClGroup
     [({ DumpRenamedAst.hs:6:1-30 }
       (DataDecl
        ({ DumpRenamedAst.hs:6:6-10 }
         {Name: DumpRenamedAst.Peano})
        (HsQTvs
         []
         []
         {NameSet:
          []})
        (Prefix)
        (HsDataDefn
         (DataType)
         ({ <no location info> }
          [])
         (Nothing)
         (Nothing)
         [({ DumpRenamedAst.hs:6:14-17 }
           (ConDeclH98
            ({ DumpRenamedAst.hs:6:14-17 }
             {Name: DumpRenamedAst.Zero})
            (False)
            []
            (Nothing)
            (PrefixCon
             [])
            (Nothing)))
         ,({ DumpRenamedAst.hs:6:21-30 }
           (ConDeclH98
            ({ DumpRenamedAst.hs:6:21-24 }
             {Name: DumpRenamedAst.Succ})
            (False)
            []
            (Nothing)
            (PrefixCon
             [({ DumpRenamedAst.hs:6:26-30 }
               (HsTyVar
                (PlaceHolder)
                (NotPromoted)
                ({ DumpRenamedAst.hs:6:26-30 }
                 {Name: DumpRenamedAst.Peano})))])
            (Nothing)))]
         ({ <no location info> }
          []))
        (True)
        {NameSet:
         [{Name: DumpRenamedAst.Peano}]}))]
     []
     [])
   ,(TyClGroup
     [({ DumpRenamedAst.hs:8:1-39 }
       (FamDecl
        (FamilyDecl
         (ClosedTypeFamily
          (Just
           [({ DumpRenamedAst.hs:9:3-36 }
             (HsIB
              [{Name: a}
              ,{Name: as}]
              (FamEqn
               ({ DumpRenamedAst.hs:9:3-8 }
                {Name: DumpRenamedAst.Length})
               [({ DumpRenamedAst.hs:9:10-17 }
                 (HsParTy
                  (PlaceHolder)
                  ({ DumpRenamedAst.hs:9:11-16 }
                   (HsOpTy
                    (PlaceHolder)
                    ({ DumpRenamedAst.hs:9:11 }
                     (HsTyVar
                      (PlaceHolder)
                      (NotPromoted)
                      ({ DumpRenamedAst.hs:9:11 }
                       {Name: a})))
                    ({ DumpRenamedAst.hs:9:13 }
                     {Name: :})
                    ({ DumpRenamedAst.hs:9:15-16 }
                     (HsTyVar
                      (PlaceHolder)
                      (NotPromoted)
                      ({ DumpRenamedAst.hs:9:15-16 }
                       {Name: as})))))))]
               (Prefix)
               ({ DumpRenamedAst.hs:9:21-36 }
                (HsAppTy
                 (PlaceHolder)
                 ({ DumpRenamedAst.hs:9:21-24 }
                  (HsTyVar
                   (PlaceHolder)
                   (NotPromoted)
                   ({ DumpRenamedAst.hs:9:21-24 }
                    {Name: DumpRenamedAst.Succ})))
                 ({ DumpRenamedAst.hs:9:26-36 }
                  (HsParTy
                   (PlaceHolder)
                   ({ DumpRenamedAst.hs:9:27-35 }
                    (HsAppTy
                     (PlaceHolder)
                     ({ DumpRenamedAst.hs:9:27-32 }
                      (HsTyVar
                       (PlaceHolder)
                       (NotPromoted)
                       ({ DumpRenamedAst.hs:9:27-32 }
                        {Name: DumpRenamedAst.Length})))
                     ({ DumpRenamedAst.hs:9:34-35 }
                      (HsTyVar
                       (PlaceHolder)
                       (NotPromoted)
                       ({ DumpRenamedAst.hs:9:34-35 }
                        {Name: as}))))))))))
              (True)))
           ,({ DumpRenamedAst.hs:10:3-24 }
             (HsIB
              []
              (FamEqn
               ({ DumpRenamedAst.hs:10:3-8 }
                {Name: DumpRenamedAst.Length})
               [({ DumpRenamedAst.hs:10:10-12 }
                 (HsExplicitListTy
                  (PlaceHolder)
                  (Promoted)
                  []))]
               (Prefix)
               ({ DumpRenamedAst.hs:10:21-24 }
                (HsTyVar
                 (PlaceHolder)
                 (NotPromoted)
                 ({ DumpRenamedAst.hs:10:21-24 }
                  {Name: DumpRenamedAst.Zero}))))
              (True)))]))
         ({ DumpRenamedAst.hs:8:13-18 }
          {Name: DumpRenamedAst.Length})
         (HsQTvs
          [{Name: k}]
          [({ DumpRenamedAst.hs:8:20-30 }
            (KindedTyVar
             (PlaceHolder)
             ({ DumpRenamedAst.hs:8:21-22 }
              {Name: as})
             ({ DumpRenamedAst.hs:8:27-29 }
              (HsListTy
               (PlaceHolder)
               ({ DumpRenamedAst.hs:8:28 }
                (HsTyVar
                 (PlaceHolder)
                 (NotPromoted)
                 ({ DumpRenamedAst.hs:8:28 }
                  {Name: k})))))))]
          {NameSet:
           []})
         (Prefix)
         ({ DumpRenamedAst.hs:8:32-39 }
          (KindSig
           ({ DumpRenamedAst.hs:8:35-39 }
            (HsTyVar
             (PlaceHolder)
             (NotPromoted)
             ({ DumpRenamedAst.hs:8:35-39 }
              {Name: DumpRenamedAst.Peano})))))
         (Nothing))))]
     []
     [])
   ,(TyClGroup
     [({ DumpRenamedAst.hs:12:1-30 }
       (FamDecl
        (FamilyDecl
         (DataFamily)
         ({ DumpRenamedAst.hs:12:13-15 }
          {Name: DumpRenamedAst.Nat})
         (HsQTvs
          [{Name: k}]
          []
          {NameSet:
           []})
         (Prefix)
         ({ DumpRenamedAst.hs:12:17-30 }
          (KindSig
           ({ DumpRenamedAst.hs:12:20-30 }
            (HsFunTy
             (PlaceHolder)
             ({ DumpRenamedAst.hs:12:20 }
              (HsTyVar
               (PlaceHolder)
               (NotPromoted)
               ({ DumpRenamedAst.hs:12:20 }
                {Name: k})))
             ({ DumpRenamedAst.hs:12:25-30 }
              (HsFunTy
               (PlaceHolder)
               ({ DumpRenamedAst.hs:12:25 }
                (HsTyVar
                 (PlaceHolder)
                 (NotPromoted)
                 ({ DumpRenamedAst.hs:12:25 }
                  {Name: k})))
               ({ DumpRenamedAst.hs:12:30 }
                (HsTyVar
                 (PlaceHolder)
                 (NotPromoted)
                 ({ DumpRenamedAst.hs:12:30 }
                  {Name: GHC.Types.*})))))))))
         (Nothing))))]
     []
     [({ DumpRenamedAst.hs:(15,1)-(16,45) }
       (DataFamInstD
        (DataFamInstDecl
         (HsIB
          [{Name: k}
          ,{Name: a}]
          (FamEqn
           ({ DumpRenamedAst.hs:15:18-20 }
            {Name: DumpRenamedAst.Nat})
           [({ DumpRenamedAst.hs:15:22-34 }
             (HsKindSig
              (PlaceHolder)
              ({ DumpRenamedAst.hs:15:23 }
               (HsTyVar
                (PlaceHolder)
                (NotPromoted)
                ({ DumpRenamedAst.hs:15:23 }
                 {Name: a})))
              ({ DumpRenamedAst.hs:15:28-33 }
               (HsFunTy
                (PlaceHolder)
                ({ DumpRenamedAst.hs:15:28 }
                 (HsTyVar
                  (PlaceHolder)
                  (NotPromoted)
                  ({ DumpRenamedAst.hs:15:28 }
                   {Name: k})))
                ({ DumpRenamedAst.hs:15:33 }
                 (HsTyVar
                  (PlaceHolder)
                  (NotPromoted)
                  ({ DumpRenamedAst.hs:15:33 }
                   {Name: GHC.Types.*})))))))]
           (Prefix)
           (HsDataDefn
            (NewType)
            ({ <no location info> }
             [])
            (Nothing)
            (Just
             ({ DumpRenamedAst.hs:15:39-51 }
              (HsFunTy
               (PlaceHolder)
               ({ DumpRenamedAst.hs:15:39-46 }
                (HsParTy
                 (PlaceHolder)
                 ({ DumpRenamedAst.hs:15:40-45 }
                  (HsFunTy
                   (PlaceHolder)
                   ({ DumpRenamedAst.hs:15:40 }
                    (HsTyVar
                     (PlaceHolder)
                     (NotPromoted)
                     ({ DumpRenamedAst.hs:15:40 }
                      {Name: k})))
                   ({ DumpRenamedAst.hs:15:45 }
                    (HsTyVar
                     (PlaceHolder)
                     (NotPromoted)
                     ({ DumpRenamedAst.hs:15:45 }
                      {Name: GHC.Types.*})))))))
               ({ DumpRenamedAst.hs:15:51 }
                (HsTyVar
                 (PlaceHolder)
                 (NotPromoted)
                 ({ DumpRenamedAst.hs:15:51 }
                  {Name: GHC.Types.*}))))))
            [({ DumpRenamedAst.hs:16:3-45 }
              (ConDeclGADT
               [({ DumpRenamedAst.hs:16:3-5 }
                 {Name: DumpRenamedAst.Nat})]
               (False)
               (HsQTvs
                [{Name: f}
                ,{Name: g}]
                []
                {NameSet:
                 []})
               (Nothing)
               (PrefixCon
                [({ DumpRenamedAst.hs:16:10-34 }
                  (HsParTy
                   (PlaceHolder)
                   ({ DumpRenamedAst.hs:16:11-33 }
                    (HsForAllTy
                     (PlaceHolder)
                     [({ DumpRenamedAst.hs:16:18-19 }
                       (UserTyVar
                        (PlaceHolder)
                        ({ DumpRenamedAst.hs:16:18-19 }
                         {Name: xx})))]
                     ({ DumpRenamedAst.hs:16:22-33 }
                      (HsFunTy
                       (PlaceHolder)
                       ({ DumpRenamedAst.hs:16:22-25 }
                        (HsAppTy
                         (PlaceHolder)
                         ({ DumpRenamedAst.hs:16:22 }
                          (HsTyVar
                           (PlaceHolder)
                           (NotPromoted)
                           ({ DumpRenamedAst.hs:16:22 }
                            {Name: f})))
                         ({ DumpRenamedAst.hs:16:24-25 }
                          (HsTyVar
                           (PlaceHolder)
                           (NotPromoted)
                           ({ DumpRenamedAst.hs:16:24-25 }
                            {Name: xx})))))
                       ({ DumpRenamedAst.hs:16:30-33 }
                        (HsAppTy
                         (PlaceHolder)
                         ({ DumpRenamedAst.hs:16:30 }
                          (HsTyVar
                           (PlaceHolder)
                           (NotPromoted)
                           ({ DumpRenamedAst.hs:16:30 }
                            {Name: g})))
                         ({ DumpRenamedAst.hs:16:32-33 }
                          (HsTyVar
                           (PlaceHolder)
                           (NotPromoted)
                           ({ DumpRenamedAst.hs:16:32-33 }
                            {Name: xx})))))))))))])
               ({ DumpRenamedAst.hs:16:39-45 }
                (HsAppTy
                 (PlaceHolder)
                 ({ DumpRenamedAst.hs:16:39-43 }
                  (HsAppTy
                   (PlaceHolder)
                   ({ DumpRenamedAst.hs:16:39-41 }
                    (HsTyVar
                     (PlaceHolder)
                     (NotPromoted)
                     ({ DumpRenamedAst.hs:16:39-41 }
                      {Name: DumpRenamedAst.Nat})))
                   ({ DumpRenamedAst.hs:16:43 }
                    (HsTyVar
                     (PlaceHolder)
                     (NotPromoted)
                     ({ DumpRenamedAst.hs:16:43 }
                      {Name: f})))))
                 ({ DumpRenamedAst.hs:16:45 }
                  (HsTyVar
                   (PlaceHolder)
                   (NotPromoted)
                   ({ DumpRenamedAst.hs:16:45 }
                    {Name: g})))))
               (Nothing)))]
            ({ <no location info> }
             [])))
          (True)))))])]
   []
   []
   []
   []
   []
   []
   []
   []
   [])
  [({ DumpRenamedAst.hs:4:8-21 }
    (ImportDecl
     (NoSourceText)
     ({ DumpRenamedAst.hs:4:8-21 }
      {ModuleName: Prelude})
     (Nothing)
     (False)
     (False)
     (False)
     (True)
     (Nothing)
     (Nothing)))]
  (Nothing)
  (Nothing)))