summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/DumpParsedAst.stderr
blob: 4648baa1f1c1151ff2c1e1ed2b3e086c0131ad35 (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

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

({ DumpParsedAst.hs:1:1 }
 (HsModule
  (Just
   ({ DumpParsedAst.hs:3:8-20 }
    {ModuleName: DumpParsedAst}))
  (Nothing)
  []
  [({ DumpParsedAst.hs:5:1-30 }
    (TyClD
     (NoExt)
     (DataDecl
      (NoExt)
      ({ DumpParsedAst.hs:5:6-10 }
       (Unqual
        {OccName: Peano}))
      (HsQTvs
       (NoExt)
       [])
      (Prefix)
      (HsDataDefn
       (NoExt)
       (DataType)
       ({ <no location info> }
        [])
       (Nothing)
       (Nothing)
       [({ DumpParsedAst.hs:5:14-17 }
         (ConDeclH98
          (NoExt)
          ({ DumpParsedAst.hs:5:14-17 }
           (Unqual
            {OccName: Zero}))
          ({ <no location info> }
           (False))
          []
          (Nothing)
          (PrefixCon
           [])
          (Nothing)))
       ,({ DumpParsedAst.hs:5:21-30 }
         (ConDeclH98
          (NoExt)
          ({ DumpParsedAst.hs:5:21-24 }
           (Unqual
            {OccName: Succ}))
          ({ <no location info> }
           (False))
          []
          (Nothing)
          (PrefixCon
           [({ DumpParsedAst.hs:5:26-30 }
             (HsTyVar
              (NoExt)
              (NotPromoted)
              ({ DumpParsedAst.hs:5:26-30 }
               (Unqual
                {OccName: Peano}))))])
          (Nothing)))]
       ({ <no location info> }
        [])))))
  ,({ DumpParsedAst.hs:7:1-39 }
    (TyClD
     (NoExt)
     (FamDecl
      (NoExt)
      (FamilyDecl
       (NoExt)
       (ClosedTypeFamily
        (Just
         [({ DumpParsedAst.hs:8:3-36 }
           (HsIB
            (NoExt)
            (FamEqn
             (NoExt)
             ({ DumpParsedAst.hs:8:3-8 }
              (Unqual
               {OccName: Length}))
             (Nothing)
             [({ DumpParsedAst.hs:8:10-17 }
               (HsParTy
                (NoExt)
                ({ DumpParsedAst.hs:8:11-16 }
                 (HsOpTy
                  (NoExt)
                  ({ DumpParsedAst.hs:8:11 }
                   (HsTyVar
                    (NoExt)
                    (NotPromoted)
                    ({ DumpParsedAst.hs:8:11 }
                     (Unqual
                      {OccName: a}))))
                  ({ DumpParsedAst.hs:8:13 }
                   (Exact
                    {Name: :}))
                  ({ DumpParsedAst.hs:8:15-16 }
                   (HsTyVar
                    (NoExt)
                    (NotPromoted)
                    ({ DumpParsedAst.hs:8:15-16 }
                     (Unqual
                      {OccName: as}))))))))]
             (Prefix)
             ({ DumpParsedAst.hs:8:21-36 }
              (HsAppTy
               (NoExt)
               ({ DumpParsedAst.hs:8:21-24 }
                (HsTyVar
                 (NoExt)
                 (NotPromoted)
                 ({ DumpParsedAst.hs:8:21-24 }
                  (Unqual
                   {OccName: Succ}))))
               ({ DumpParsedAst.hs:8:26-36 }
                (HsParTy
                 (NoExt)
                 ({ DumpParsedAst.hs:8:27-35 }
                  (HsAppTy
                   (NoExt)
                   ({ DumpParsedAst.hs:8:27-32 }
                    (HsTyVar
                     (NoExt)
                     (NotPromoted)
                     ({ DumpParsedAst.hs:8:27-32 }
                      (Unqual
                       {OccName: Length}))))
                   ({ DumpParsedAst.hs:8:34-35 }
                    (HsTyVar
                     (NoExt)
                     (NotPromoted)
                     ({ DumpParsedAst.hs:8:34-35 }
                      (Unqual
                       {OccName: as})))))))))))))
         ,({ DumpParsedAst.hs:9:3-24 }
           (HsIB
            (NoExt)
            (FamEqn
             (NoExt)
             ({ DumpParsedAst.hs:9:3-8 }
              (Unqual
               {OccName: Length}))
             (Nothing)
             [({ DumpParsedAst.hs:9:10-12 }
               (HsExplicitListTy
                (NoExt)
                (Promoted)
                []))]
             (Prefix)
             ({ DumpParsedAst.hs:9:21-24 }
              (HsTyVar
               (NoExt)
               (NotPromoted)
               ({ DumpParsedAst.hs:9:21-24 }
                (Unqual
                 {OccName: Zero})))))))]))
       ({ DumpParsedAst.hs:7:13-18 }
        (Unqual
         {OccName: Length}))
       (HsQTvs
        (NoExt)
        [({ DumpParsedAst.hs:7:21-29 }
          (KindedTyVar
           (NoExt)
           ({ DumpParsedAst.hs:7:21-22 }
            (Unqual
             {OccName: as}))
           ({ DumpParsedAst.hs:7:27-29 }
            (HsListTy
             (NoExt)
             ({ DumpParsedAst.hs:7:28 }
              (HsTyVar
               (NoExt)
               (NotPromoted)
               ({ DumpParsedAst.hs:7:28 }
                (Unqual
                 {OccName: k}))))))))])
       (Prefix)
       ({ DumpParsedAst.hs:7:32-39 }
        (KindSig
         (NoExt)
         ({ DumpParsedAst.hs:7:35-39 }
          (HsTyVar
           (NoExt)
           (NotPromoted)
           ({ DumpParsedAst.hs:7:35-39 }
            (Unqual
             {OccName: Peano}))))))
       (Nothing)))))
  ,({ DumpParsedAst.hs:11:1-23 }
    (ValD
     (NoExt)
     (FunBind
      (NoExt)
      ({ DumpParsedAst.hs:11:1-4 }
       (Unqual
        {OccName: main}))
      (MG
       (NoExt)
       ({ DumpParsedAst.hs:11:1-23 }
        [({ DumpParsedAst.hs:11:1-23 }
          (Match
           (NoExt)
           (FunRhs
            ({ DumpParsedAst.hs:11:1-4 }
             (Unqual
              {OccName: main}))
            (Prefix)
            (NoSrcStrict))
           []
           (GRHSs
            (NoExt)
            [({ DumpParsedAst.hs:11:6-23 }
              (GRHS
               (NoExt)
               []
               ({ DumpParsedAst.hs:11:8-23 }
                (HsApp
                 (NoExt)
                 ({ DumpParsedAst.hs:11:8-15 }
                  (HsVar
                   (NoExt)
                   ({ DumpParsedAst.hs:11:8-15 }
                    (Unqual
                     {OccName: putStrLn}))))
                 ({ DumpParsedAst.hs:11:17-23 }
                  (HsLit
                   (NoExt)
                   (HsString
                    (SourceText
                     "\"hello\"")
                    {FastString: "hello"})))))))]
            ({ <no location info> }
             (EmptyLocalBinds
              (NoExt))))))])
       (FromSource))
      (WpHole)
      [])))]
  (Nothing)
  (Nothing)))