File: GenericTree.hs.parser.golden

package info (click to toggle)
haskell-src-exts 1.23.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,852 kB
  • sloc: haskell: 13,707; makefile: 12
file content (479 lines) | stat: -rw-r--r-- 23,162 bytes parent folder | download | duplicates (3)
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
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
ParseOk
  ( Module
      SrcSpanInfo
        { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 1 1 8 1
        , srcInfoPoints =
            [ SrcSpan "tests/examples/GenericTree.hs" 1 1 1 1
            , SrcSpan "tests/examples/GenericTree.hs" 2 1 2 1
            , SrcSpan "tests/examples/GenericTree.hs" 2 1 2 1
            , SrcSpan "tests/examples/GenericTree.hs" 4 1 4 1
            , SrcSpan "tests/examples/GenericTree.hs" 6 1 6 1
            , SrcSpan "tests/examples/GenericTree.hs" 7 1 7 1
            , SrcSpan "tests/examples/GenericTree.hs" 8 1 8 1
            , SrcSpan "tests/examples/GenericTree.hs" 8 1 8 1
            ]
        }
      (Just
         (ModuleHead
            SrcSpanInfo
              { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 2 1 2 25
              , srcInfoPoints =
                  [ SrcSpan "tests/examples/GenericTree.hs" 2 1 2 7
                  , SrcSpan "tests/examples/GenericTree.hs" 2 20 2 25
                  ]
              }
            (ModuleName
               SrcSpanInfo
                 { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 2 8 2 19
                 , srcInfoPoints = []
                 }
               "GenericTree")
            Nothing
            Nothing))
      [ LanguagePragma
          SrcSpanInfo
            { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 1 1 1 28
            , srcInfoPoints =
                [ SrcSpan "tests/examples/GenericTree.hs" 1 1 1 13
                , SrcSpan "tests/examples/GenericTree.hs" 1 25 1 28
                ]
            }
          [ Ident
              SrcSpanInfo
                { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 1 14 1 24
                , srcInfoPoints = []
                }
              "RankNTypes"
          ]
      ]
      [ ImportDecl
          { importAnn =
              SrcSpanInfo
                { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 4 1 4 21
                , srcInfoPoints =
                    [ SrcSpan "tests/examples/GenericTree.hs" 4 1 4 7 ]
                }
          , importModule =
              ModuleName
                SrcSpanInfo
                  { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 4 8 4 21
                  , srcInfoPoints = []
                  }
                "Data.Typeable"
          , importQualified = False
          , importSrc = False
          , importSafe = False
          , importPkg = Nothing
          , importAs = Nothing
          , importSpecs = Nothing
          }
      ]
      [ TypeSig
          SrcSpanInfo
            { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 1 6 83
            , srcInfoPoints =
                [ SrcSpan "tests/examples/GenericTree.hs" 6 8 6 10 ]
            }
          [ Ident
              SrcSpanInfo
                { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 1 6 7
                , srcInfoPoints = []
                }
              "dynRep"
          ]
          (TyForall
             SrcSpanInfo
               { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 11 6 83
               , srcInfoPoints = []
               }
             Nothing
             (Just
                (CxSingle
                   SrcSpanInfo
                     { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 11 6 26
                     , srcInfoPoints =
                         [ SrcSpan "tests/examples/GenericTree.hs" 6 11 6 12
                         , SrcSpan "tests/examples/GenericTree.hs" 6 22 6 23
                         , SrcSpan "tests/examples/GenericTree.hs" 6 24 6 26
                         ]
                     }
                   (ParenA
                      SrcSpanInfo
                        { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 11 6 26
                        , srcInfoPoints =
                            [ SrcSpan "tests/examples/GenericTree.hs" 6 11 6 12
                            , SrcSpan "tests/examples/GenericTree.hs" 6 22 6 23
                            , SrcSpan "tests/examples/GenericTree.hs" 6 24 6 26
                            ]
                        }
                      (TypeA
                         SrcSpanInfo
                           { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 12 6 22
                           , srcInfoPoints = []
                           }
                         (TyApp
                            SrcSpanInfo
                              { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 12 6 22
                              , srcInfoPoints = []
                              }
                            (TyCon
                               SrcSpanInfo
                                 { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 12 6 22
                                 , srcInfoPoints = []
                                 }
                               (UnQual
                                  SrcSpanInfo
                                    { srcInfoSpan =
                                        SrcSpan "tests/examples/GenericTree.hs" 6 12 6 20
                                    , srcInfoPoints = []
                                    }
                                  (Ident
                                     SrcSpanInfo
                                       { srcInfoSpan =
                                           SrcSpan "tests/examples/GenericTree.hs" 6 12 6 20
                                       , srcInfoPoints = []
                                       }
                                     "Typeable")))
                            (TyVar
                               SrcSpanInfo
                                 { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 21 6 22
                                 , srcInfoPoints = []
                                 }
                               (Ident
                                  SrcSpanInfo
                                    { srcInfoSpan =
                                        SrcSpan "tests/examples/GenericTree.hs" 6 21 6 22
                                    , srcInfoPoints = []
                                    }
                                  "a")))))))
             (TyFun
                SrcSpanInfo
                  { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 27 6 83
                  , srcInfoPoints =
                      [ SrcSpan "tests/examples/GenericTree.hs" 6 29 6 31 ]
                  }
                (TyVar
                   SrcSpanInfo
                     { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 27 6 28
                     , srcInfoPoints = []
                     }
                   (Ident
                      SrcSpanInfo
                        { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 27 6 28
                        , srcInfoPoints = []
                        }
                      "a"))
                (TyTuple
                   SrcSpanInfo
                     { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 32 6 83
                     , srcInfoPoints =
                         [ SrcSpan "tests/examples/GenericTree.hs" 6 32 6 33
                         , SrcSpan "tests/examples/GenericTree.hs" 6 40 6 41
                         , SrcSpan "tests/examples/GenericTree.hs" 6 82 6 83
                         ]
                     }
                   Boxed
                   [ TyCon
                       SrcSpanInfo
                         { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 33 6 40
                         , srcInfoPoints = []
                         }
                       (UnQual
                          SrcSpanInfo
                            { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 33 6 40
                            , srcInfoPoints = []
                            }
                          (Ident
                             SrcSpanInfo
                               { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 33 6 40
                               , srcInfoPoints = []
                               }
                             "TypeRep"))
                   , TyForall
                       SrcSpanInfo
                         { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 42 6 82
                         , srcInfoPoints =
                             [ SrcSpan "tests/examples/GenericTree.hs" 6 42 6 48
                             , SrcSpan "tests/examples/GenericTree.hs" 6 50 6 51
                             ]
                         }
                       (Just
                          [ UnkindedVar
                              SrcSpanInfo
                                { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 49 6 50
                                , srcInfoPoints = []
                                }
                              (Ident
                                 SrcSpanInfo
                                   { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 49 6 50
                                   , srcInfoPoints = []
                                   }
                                 "b")
                          ])
                       (Just
                          (CxSingle
                             SrcSpanInfo
                               { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 52 6 67
                               , srcInfoPoints =
                                   [ SrcSpan "tests/examples/GenericTree.hs" 6 52 6 53
                                   , SrcSpan "tests/examples/GenericTree.hs" 6 63 6 64
                                   , SrcSpan "tests/examples/GenericTree.hs" 6 65 6 67
                                   ]
                               }
                             (ParenA
                                SrcSpanInfo
                                  { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 52 6 67
                                  , srcInfoPoints =
                                      [ SrcSpan "tests/examples/GenericTree.hs" 6 52 6 53
                                      , SrcSpan "tests/examples/GenericTree.hs" 6 63 6 64
                                      , SrcSpan "tests/examples/GenericTree.hs" 6 65 6 67
                                      ]
                                  }
                                (TypeA
                                   SrcSpanInfo
                                     { srcInfoSpan =
                                         SrcSpan "tests/examples/GenericTree.hs" 6 53 6 63
                                     , srcInfoPoints = []
                                     }
                                   (TyApp
                                      SrcSpanInfo
                                        { srcInfoSpan =
                                            SrcSpan "tests/examples/GenericTree.hs" 6 53 6 63
                                        , srcInfoPoints = []
                                        }
                                      (TyCon
                                         SrcSpanInfo
                                           { srcInfoSpan =
                                               SrcSpan "tests/examples/GenericTree.hs" 6 53 6 63
                                           , srcInfoPoints = []
                                           }
                                         (UnQual
                                            SrcSpanInfo
                                              { srcInfoSpan =
                                                  SrcSpan "tests/examples/GenericTree.hs" 6 53 6 61
                                              , srcInfoPoints = []
                                              }
                                            (Ident
                                               SrcSpanInfo
                                                 { srcInfoSpan =
                                                     SrcSpan
                                                       "tests/examples/GenericTree.hs" 6 53 6 61
                                                 , srcInfoPoints = []
                                                 }
                                               "Typeable")))
                                      (TyVar
                                         SrcSpanInfo
                                           { srcInfoSpan =
                                               SrcSpan "tests/examples/GenericTree.hs" 6 62 6 63
                                           , srcInfoPoints = []
                                           }
                                         (Ident
                                            SrcSpanInfo
                                              { srcInfoSpan =
                                                  SrcSpan "tests/examples/GenericTree.hs" 6 62 6 63
                                              , srcInfoPoints = []
                                              }
                                            "b")))))))
                       (TyFun
                          SrcSpanInfo
                            { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 68 6 82
                            , srcInfoPoints =
                                [ SrcSpan "tests/examples/GenericTree.hs" 6 70 6 72 ]
                            }
                          (TyVar
                             SrcSpanInfo
                               { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 68 6 69
                               , srcInfoPoints = []
                               }
                             (Ident
                                SrcSpanInfo
                                  { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 68 6 69
                                  , srcInfoPoints = []
                                  }
                                "b"))
                          (TyParen
                             SrcSpanInfo
                               { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 73 6 82
                               , srcInfoPoints =
                                   [ SrcSpan "tests/examples/GenericTree.hs" 6 73 6 74
                                   , SrcSpan "tests/examples/GenericTree.hs" 6 81 6 82
                                   ]
                               }
                             (TyApp
                                SrcSpanInfo
                                  { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 6 74 6 81
                                  , srcInfoPoints = []
                                  }
                                (TyCon
                                   SrcSpanInfo
                                     { srcInfoSpan =
                                         SrcSpan "tests/examples/GenericTree.hs" 6 74 6 79
                                     , srcInfoPoints = []
                                     }
                                   (UnQual
                                      SrcSpanInfo
                                        { srcInfoSpan =
                                            SrcSpan "tests/examples/GenericTree.hs" 6 74 6 79
                                        , srcInfoPoints = []
                                        }
                                      (Ident
                                         SrcSpanInfo
                                           { srcInfoSpan =
                                               SrcSpan "tests/examples/GenericTree.hs" 6 74 6 79
                                           , srcInfoPoints = []
                                           }
                                         "Maybe")))
                                (TyVar
                                   SrcSpanInfo
                                     { srcInfoSpan =
                                         SrcSpan "tests/examples/GenericTree.hs" 6 80 6 81
                                     , srcInfoPoints = []
                                     }
                                   (Ident
                                      SrcSpanInfo
                                        { srcInfoSpan =
                                            SrcSpan "tests/examples/GenericTree.hs" 6 80 6 81
                                        , srcInfoPoints = []
                                        }
                                      "b")))))
                   ])))
      , FunBind
          SrcSpanInfo
            { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 1 7 36
            , srcInfoPoints = []
            }
          [ Match
              SrcSpanInfo
                { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 1 7 36
                , srcInfoPoints = []
                }
              (Ident
                 SrcSpanInfo
                   { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 1 7 7
                   , srcInfoPoints = []
                   }
                 "dynRep")
              [ PVar
                  SrcSpanInfo
                    { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 8 7 9
                    , srcInfoPoints = []
                    }
                  (Ident
                     SrcSpanInfo
                       { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 8 7 9
                       , srcInfoPoints = []
                       }
                     "a")
              ]
              (UnGuardedRhs
                 SrcSpanInfo
                   { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 10 7 36
                   , srcInfoPoints =
                       [ SrcSpan "tests/examples/GenericTree.hs" 7 10 7 11 ]
                   }
                 (Tuple
                    SrcSpanInfo
                      { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 12 7 36
                      , srcInfoPoints =
                          [ SrcSpan "tests/examples/GenericTree.hs" 7 12 7 13
                          , SrcSpan "tests/examples/GenericTree.hs" 7 21 7 22
                          , SrcSpan "tests/examples/GenericTree.hs" 7 35 7 36
                          ]
                      }
                    Boxed
                    [ App
                        SrcSpanInfo
                          { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 13 7 21
                          , srcInfoPoints = []
                          }
                        (Var
                           SrcSpanInfo
                             { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 13 7 19
                             , srcInfoPoints = []
                             }
                           (UnQual
                              SrcSpanInfo
                                { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 13 7 19
                                , srcInfoPoints = []
                                }
                              (Ident
                                 SrcSpanInfo
                                   { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 13 7 19
                                   , srcInfoPoints = []
                                   }
                                 "typeOf")))
                        (Var
                           SrcSpanInfo
                             { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 20 7 21
                             , srcInfoPoints = []
                             }
                           (UnQual
                              SrcSpanInfo
                                { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 20 7 21
                                , srcInfoPoints = []
                                }
                              (Ident
                                 SrcSpanInfo
                                   { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 20 7 21
                                   , srcInfoPoints = []
                                   }
                                 "a")))
                    , Lambda
                        SrcSpanInfo
                          { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 23 7 35
                          , srcInfoPoints =
                              [ SrcSpan "tests/examples/GenericTree.hs" 7 23 7 24
                              , SrcSpan "tests/examples/GenericTree.hs" 7 26 7 28
                              ]
                          }
                        [ PWildCard
                            SrcSpanInfo
                              { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 24 7 25
                              , srcInfoPoints = []
                              }
                        ]
                        (App
                           SrcSpanInfo
                             { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 29 7 35
                             , srcInfoPoints = []
                             }
                           (Var
                              SrcSpanInfo
                                { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 29 7 33
                                , srcInfoPoints = []
                                }
                              (UnQual
                                 SrcSpanInfo
                                   { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 29 7 33
                                   , srcInfoPoints = []
                                   }
                                 (Ident
                                    SrcSpanInfo
                                      { srcInfoSpan =
                                          SrcSpan "tests/examples/GenericTree.hs" 7 29 7 33
                                      , srcInfoPoints = []
                                      }
                                    "cast")))
                           (Var
                              SrcSpanInfo
                                { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 34 7 35
                                , srcInfoPoints = []
                                }
                              (UnQual
                                 SrcSpanInfo
                                   { srcInfoSpan = SrcSpan "tests/examples/GenericTree.hs" 7 34 7 35
                                   , srcInfoPoints = []
                                   }
                                 (Ident
                                    SrcSpanInfo
                                      { srcInfoSpan =
                                          SrcSpan "tests/examples/GenericTree.hs" 7 34 7 35
                                      , srcInfoPoints = []
                                      }
                                    "a"))))
                    ]))
              Nothing
          ]
      ]
  , []
  )