diff options
Diffstat (limited to 'testdata/language-features/adt')
-rw-r--r-- | testdata/language-features/adt/adt01.out | 76 | ||||
-rw-r--r-- | testdata/language-features/adt/adt02.out | 134 | ||||
-rw-r--r-- | testdata/language-features/adt/adt02.reject.out | 32 | ||||
-rw-r--r-- | testdata/language-features/adt/adt03.reject.out | 6 | ||||
-rw-r--r-- | testdata/language-features/adt/adt04.reject.out | 6 | ||||
-rw-r--r-- | testdata/language-features/adt/adt05.out | 74 | ||||
-rw-r--r-- | testdata/language-features/adt/gadt01.out | 242 | ||||
-rw-r--r-- | testdata/language-features/adt/gadt01.reject.out | 6 | ||||
-rw-r--r-- | testdata/language-features/adt/gadt02.reject.out | 4 | ||||
-rw-r--r-- | testdata/language-features/adt/gadt03.reject.out | 42 | ||||
-rw-r--r-- | testdata/language-features/adt/gadt04.reject.out | 68 |
11 files changed, 345 insertions, 345 deletions
diff --git a/testdata/language-features/adt/adt01.out b/testdata/language-features/adt/adt01.out index 36f684b5..67385347 100644 --- a/testdata/language-features/adt/adt01.out +++ b/testdata/language-features/adt/adt01.out | |||
@@ -108,80 +108,80 @@ match'Zero = \a b c d -> <<type case function>> | |||
108 | value1 :: OneBool | 108 | value1 :: OneBool |
109 | value1 = _rhs (OneBool True) | 109 | value1 = _rhs (OneBool True) |
110 | ------------ tooltips | 110 | ------------ tooltips |
111 | adt01.lc 1:6-1:10 | 111 | 1:6-1:10 |
112 | Type | Type | Type | Type | 112 | Type | Type | Type | Type |
113 | adt01.lc 3:6-3:10 | 113 | 3:6-3:10 |
114 | Type -> Type | Type -> Type | Type -> Type | Type -> Type | Type | 114 | Type -> Type | Type -> Type | Type -> Type | Type -> Type | Type |
115 | adt01.lc 3:6-3:12 | 115 | 3:6-3:12 |
116 | Type | Type | 116 | Type | Type |
117 | adt01.lc 3:6-3:19 | 117 | 3:6-3:19 |
118 | Type | Type | 118 | Type | Type |
119 | adt01.lc 3:6-3:21 | 119 | 3:6-3:21 |
120 | Type | 120 | Type |
121 | adt01.lc 3:11-3:12 | 121 | 3:11-3:12 |
122 | Type | 122 | Type |
123 | adt01.lc 3:15-3:19 | 123 | 3:15-3:19 |
124 | forall a . a -> One1 a | One1 _c | Type | Type | 124 | forall a . a -> One1 a | One1 _c | Type | Type |
125 | adt01.lc 3:20-3:21 | 125 | 3:20-3:21 |
126 | Type | 126 | Type |
127 | adt01.lc 5:6-5:12 | 127 | 5:6-5:12 |
128 | Type | Type | Type | Type | Type | Type | 128 | Type | Type | Type | Type | Type | Type |
129 | adt01.lc 5:6-5:19 | 129 | 5:6-5:19 |
130 | Type | 130 | Type |
131 | adt01.lc 5:15-5:19 | 131 | 5:15-5:19 |
132 | Int -> OneInt | OneInt | Type | Type | 132 | Int -> OneInt | OneInt | Type | Type |
133 | adt01.lc 5:20-5:23 | 133 | 5:20-5:23 |
134 | Type | 134 | Type |
135 | adt01.lc 7:6-7:13 | 135 | 7:6-7:13 |
136 | Type | Type | Type | Type | Type | Type | 136 | Type | Type | Type | Type | Type | Type |
137 | adt01.lc 7:6-7:23 | 137 | 7:6-7:23 |
138 | Type | 138 | Type |
139 | adt01.lc 7:16-7:23 | 139 | 7:16-7:23 |
140 | Bool -> OneBool | OneBool | Type | Type | 140 | Bool -> OneBool | OneBool | Type | Type |
141 | adt01.lc 7:24-7:28 | 141 | 7:24-7:28 |
142 | Type | 142 | Type |
143 | adt01.lc 9:6-9:9 | 143 | 9:6-9:9 |
144 | Type -> Type -> Type | Type -> Type -> Type | Type -> Type -> Type | Type | 144 | Type -> Type -> Type | Type -> Type -> Type | Type -> Type -> Type | Type |
145 | -> Type -> Type | Type -> Type -> Type | Type | 145 | -> Type -> Type | Type -> Type -> Type | Type |
146 | adt01.lc 9:6-9:11 | 146 | 9:6-9:11 |
147 | Type -> Type | Type -> Type | 147 | Type -> Type | Type -> Type |
148 | adt01.lc 9:6-9:13 | 148 | 9:6-9:13 |
149 | Type | Type | Type | Type | 149 | Type | Type | Type | Type |
150 | adt01.lc 9:6-10:11 | 150 | 9:6-10:11 |
151 | Type | Type | 151 | Type | Type |
152 | adt01.lc 9:6-11:9 | 152 | 9:6-11:9 |
153 | Type | Type | Type | Type | 153 | Type | Type | Type | Type |
154 | adt01.lc 9:6-11:11 | 154 | 9:6-11:11 |
155 | Type | Type | 155 | Type | Type |
156 | adt01.lc 9:10-9:11 | 156 | 9:10-9:11 |
157 | Type | Type | 157 | Type | Type |
158 | adt01.lc 9:12-9:13 | 158 | 9:12-9:13 |
159 | Type | Type | 159 | Type | Type |
160 | adt01.lc 10:5-10:9 | 160 | 10:5-10:9 |
161 | forall a b . a -> Two a b | Two _d _c | Type | Type | 161 | forall a b . a -> Two a b | Two _d _c | Type | Type |
162 | adt01.lc 10:10-10:11 | 162 | 10:10-10:11 |
163 | Type | 163 | Type |
164 | adt01.lc 11:5-11:9 | 164 | 11:5-11:9 |
165 | forall a b . b -> Two a b | Two _e _d | Type | Type | 165 | forall a b . b -> Two a b | Two _e _d | Type | Type |
166 | adt01.lc 11:10-11:11 | 166 | 11:10-11:11 |
167 | Type | 167 | Type |
168 | adt01.lc 13:1-13:7 | 168 | 13:1-13:7 |
169 | OneBool | 169 | OneBool |
170 | adt01.lc 13:10-13:17 | 170 | 13:10-13:17 |
171 | Bool -> OneBool | 171 | Bool -> OneBool |
172 | adt01.lc 13:10-13:22 | 172 | 13:10-13:22 |
173 | OneBool | 173 | OneBool |
174 | adt01.lc 13:18-13:22 | 174 | 13:18-13:22 |
175 | Bool | 175 | Bool |
176 | adt01.lc 15:1-15:2 | 176 | 15:1-15:2 |
177 | OneBool -> Bool | 177 | OneBool -> Bool |
178 | adt01.lc 15:17-15:18 | 178 | 15:17-15:18 |
179 | Bool | 179 | Bool |
180 | adt01.lc 17:1-17:5 | 180 | 17:1-17:5 |
181 | Bool | 181 | Bool |
182 | adt01.lc 17:8-17:9 | 182 | 17:8-17:9 |
183 | OneBool -> Bool | 183 | OneBool -> Bool |
184 | adt01.lc 17:8-17:16 | 184 | 17:8-17:16 |
185 | Bool | 185 | Bool |
186 | adt01.lc 17:10-17:16 | 186 | 17:10-17:16 |
187 | OneBool \ No newline at end of file | 187 | OneBool \ No newline at end of file |
diff --git a/testdata/language-features/adt/adt02.out b/testdata/language-features/adt/adt02.out index 8145446b..404cd771 100644 --- a/testdata/language-features/adt/adt02.out +++ b/testdata/language-features/adt/adt02.out | |||
@@ -149,141 +149,141 @@ value2 = _rhs (Data2 True "friend" True) | |||
149 | value3 :: Data3 Bool Bool Bool | 149 | value3 :: Data3 Bool Bool Bool |
150 | value3 = _rhs (Data3 True True True) | 150 | value3 = _rhs (Data3 True True True) |
151 | ------------ tooltips | 151 | ------------ tooltips |
152 | adt02.lc 1:6-1:11 | 152 | 1:6-1:11 |
153 | Type | Type | Type | Type | Type | Type | 153 | Type | Type | Type | Type | Type | Type |
154 | adt02.lc 1:6-1:19 | 154 | 1:6-1:19 |
155 | Type | 155 | Type |
156 | adt02.lc 1:14-1:19 | 156 | 1:14-1:19 |
157 | Bool -> Data1 | Data1 | Type | Type | 157 | Bool -> Data1 | Data1 | Type | Type |
158 | adt02.lc 1:22-1:26 | 158 | 1:22-1:26 |
159 | Data1 -> Bool | 159 | Data1 -> Bool |
160 | adt02.lc 1:30-1:34 | 160 | 1:30-1:34 |
161 | Type | 161 | Type |
162 | adt02.lc 3:6-3:11 | 162 | 3:6-3:11 |
163 | Type | Type | Type | Type | Type | Type | 163 | Type | Type | Type | Type | Type | Type |
164 | adt02.lc 3:6-3:19 | 164 | 3:6-3:19 |
165 | Type | 165 | Type |
166 | adt02.lc 3:6-6:17 | 166 | 3:6-6:17 |
167 | Type | Type | 167 | Type | Type |
168 | adt02.lc 3:14-3:19 | 168 | 3:14-3:19 |
169 | Bool -> String -> Bool -> Data2 | Data2 | Type | Type | Type | Type | 169 | Bool -> String -> Bool -> Data2 | Data2 | Type | Type | Type | Type |
170 | adt02.lc 4:5-4:9 | 170 | 4:5-4:9 |
171 | Data2 -> Bool | 171 | Data2 -> Bool |
172 | adt02.lc 4:13-4:17 | 172 | 4:13-4:17 |
173 | Type | 173 | Type |
174 | adt02.lc 5:5-5:9 | 174 | 5:5-5:9 |
175 | Data2 -> String | 175 | Data2 -> String |
176 | adt02.lc 5:13-5:19 | 176 | 5:13-5:19 |
177 | Type | 177 | Type |
178 | adt02.lc 6:5-6:9 | 178 | 6:5-6:9 |
179 | Data2 -> Bool | 179 | Data2 -> Bool |
180 | adt02.lc 6:13-6:17 | 180 | 6:13-6:17 |
181 | Type | 181 | Type |
182 | adt02.lc 9:1-9:7 | 182 | 9:1-9:7 |
183 | Data1 | 183 | Data1 |
184 | adt02.lc 9:10-9:15 | 184 | 9:10-9:15 |
185 | Bool -> Data1 | 185 | Bool -> Data1 |
186 | adt02.lc 9:10-9:20 | 186 | 9:10-9:20 |
187 | Data1 | 187 | Data1 |
188 | adt02.lc 9:16-9:20 | 188 | 9:16-9:20 |
189 | Bool | 189 | Bool |
190 | adt02.lc 10:1-10:7 | 190 | 10:1-10:7 |
191 | Data2 | 191 | Data2 |
192 | adt02.lc 10:10-10:15 | 192 | 10:10-10:15 |
193 | Bool -> String -> Bool -> Data2 | 193 | Bool -> String -> Bool -> Data2 |
194 | adt02.lc 10:10-10:20 | 194 | 10:10-10:20 |
195 | String -> Bool -> Data2 | 195 | String -> Bool -> Data2 |
196 | adt02.lc 10:10-10:29 | 196 | 10:10-10:29 |
197 | Bool -> Data2 | 197 | Bool -> Data2 |
198 | adt02.lc 10:10-10:34 | 198 | 10:10-10:34 |
199 | Data2 | 199 | Data2 |
200 | adt02.lc 10:16-10:20 | 200 | 10:16-10:20 |
201 | Bool | 201 | Bool |
202 | adt02.lc 10:21-10:29 | 202 | 10:21-10:29 |
203 | String | 203 | String |
204 | adt02.lc 10:30-10:34 | 204 | 10:30-10:34 |
205 | Bool | 205 | Bool |
206 | adt02.lc 12:6-12:11 | 206 | 12:6-12:11 |
207 | Type -> Type -> Type -> Type | Type -> Type -> Type -> Type | Type | 207 | Type -> Type -> Type -> Type | Type -> Type -> Type -> Type | Type |
208 | -> Type -> Type -> Type | Type -> Type -> Type -> Type | Type | 208 | -> Type -> Type -> Type | Type -> Type -> Type -> Type | Type |
209 | adt02.lc 12:6-12:13 | 209 | 12:6-12:13 |
210 | Type -> Type -> Type | 210 | Type -> Type -> Type |
211 | adt02.lc 12:6-12:15 | 211 | 12:6-12:15 |
212 | Type -> Type | 212 | Type -> Type |
213 | adt02.lc 12:6-12:17 | 213 | 12:6-12:17 |
214 | Type | Type | 214 | Type | Type |
215 | adt02.lc 12:6-12:25 | 215 | 12:6-12:25 |
216 | Type | Type | Type | Type | 216 | Type | Type | Type | Type |
217 | adt02.lc 12:6-15:14 | 217 | 12:6-15:14 |
218 | Type | Type | Type | Type | Type | 218 | Type | Type | Type | Type | Type |
219 | adt02.lc 12:12-12:13 | 219 | 12:12-12:13 |
220 | Type | 220 | Type |
221 | adt02.lc 12:14-12:15 | 221 | 12:14-12:15 |
222 | Type | 222 | Type |
223 | adt02.lc 12:16-12:17 | 223 | 12:16-12:17 |
224 | Type | 224 | Type |
225 | adt02.lc 12:20-12:25 | 225 | 12:20-12:25 |
226 | forall a b c . a -> b -> c -> Data3 a b c | Data3 | 226 | forall a b c . a -> b -> c -> Data3 a b c | Data3 |
227 | _g | 227 | _g |
228 | _f | 228 | _f |
229 | _e | Type | Type | Type | Type | 229 | _e | Type | Type | Type | Type |
230 | adt02.lc 13:5-13:9 | 230 | 13:5-13:9 |
231 | forall a b c . Data3 a b c -> a | 231 | forall a b c . Data3 a b c -> a |
232 | adt02.lc 13:13-13:14 | 232 | 13:13-13:14 |
233 | Type | 233 | Type |
234 | adt02.lc 14:5-14:9 | 234 | 14:5-14:9 |
235 | forall a b c . Data3 a b c -> b | 235 | forall a b c . Data3 a b c -> b |
236 | adt02.lc 14:13-14:14 | 236 | 14:13-14:14 |
237 | Type | 237 | Type |
238 | adt02.lc 15:5-15:9 | 238 | 15:5-15:9 |
239 | forall a b c . Data3 a b c -> c | 239 | forall a b c . Data3 a b c -> c |
240 | adt02.lc 15:13-15:14 | 240 | 15:13-15:14 |
241 | Type | 241 | Type |
242 | adt02.lc 18:1-18:7 | 242 | 18:1-18:7 |
243 | Data3 Bool Bool Bool | 243 | Data3 Bool Bool Bool |
244 | adt02.lc 18:10-18:15 | 244 | 18:10-18:15 |
245 | forall a b c . a -> b -> c -> Data3 a b c | 245 | forall a b c . a -> b -> c -> Data3 a b c |
246 | adt02.lc 18:10-18:20 | 246 | 18:10-18:20 |
247 | _b -> _a -> Data3 Bool _b _a | 247 | _b -> _a -> Data3 Bool _b _a |
248 | adt02.lc 18:10-18:25 | 248 | 18:10-18:25 |
249 | _a -> Data3 Bool Bool _a | 249 | _a -> Data3 Bool Bool _a |
250 | adt02.lc 18:10-18:30 | 250 | 18:10-18:30 |
251 | Data3 Bool Bool Bool | 251 | Data3 Bool Bool Bool |
252 | adt02.lc 18:16-18:20 | 252 | 18:16-18:20 |
253 | Bool | 253 | Bool |
254 | adt02.lc 18:21-18:25 | 254 | 18:21-18:25 |
255 | Bool | 255 | Bool |
256 | adt02.lc 18:26-18:30 | 256 | 18:26-18:30 |
257 | Bool | 257 | Bool |
258 | adt02.lc 20:1-20:5 | 258 | 20:1-20:5 |
259 | Bool | 259 | Bool |
260 | adt02.lc 20:8-20:12 | 260 | 20:8-20:12 |
261 | Data2 -> Bool | 261 | Data2 -> Bool |
262 | adt02.lc 20:8-20:19 | 262 | 20:8-20:19 |
263 | Bool | 263 | Bool |
264 | adt02.lc 20:8-20:22 | 264 | 20:8-20:22 |
265 | Bool -> Bool | 265 | Bool -> Bool |
266 | adt02.lc 20:8-20:49 | 266 | 20:8-20:49 |
267 | Bool | 267 | Bool |
268 | adt02.lc 20:13-20:19 | 268 | 20:13-20:19 |
269 | Data2 | 269 | Data2 |
270 | adt02.lc 20:20-20:22 | 270 | 20:20-20:22 |
271 | Bool -> Bool -> Bool | 271 | Bool -> Bool -> Bool |
272 | adt02.lc 20:23-20:27 | 272 | 20:23-20:27 |
273 | Data2 -> Bool | 273 | Data2 -> Bool |
274 | adt02.lc 20:23-20:34 | 274 | 20:23-20:34 |
275 | Bool | 275 | Bool |
276 | adt02.lc 20:23-20:37 | 276 | 20:23-20:37 |
277 | Bool -> Bool | 277 | Bool -> Bool |
278 | adt02.lc 20:23-20:49 | 278 | 20:23-20:49 |
279 | Bool | 279 | Bool |
280 | adt02.lc 20:28-20:34 | 280 | 20:28-20:34 |
281 | Data2 | 281 | Data2 |
282 | adt02.lc 20:35-20:37 | 282 | 20:35-20:37 |
283 | Bool -> Bool -> Bool | 283 | Bool -> Bool -> Bool |
284 | adt02.lc 20:38-20:42 | 284 | 20:38-20:42 |
285 | forall a b c . Data3 a b c -> a | 285 | forall a b c . Data3 a b c -> a |
286 | adt02.lc 20:38-20:49 | 286 | 20:38-20:49 |
287 | Bool | 287 | Bool |
288 | adt02.lc 20:43-20:49 | 288 | 20:43-20:49 |
289 | Data3 Bool Bool Bool \ No newline at end of file | 289 | Data3 Bool Bool Bool \ No newline at end of file |
diff --git a/testdata/language-features/adt/adt02.reject.out b/testdata/language-features/adt/adt02.reject.out index 4df48b2c..e07abac2 100644 --- a/testdata/language-features/adt/adt02.reject.out +++ b/testdata/language-features/adt/adt02.reject.out | |||
@@ -1,9 +1,9 @@ | |||
1 | type error: can not unify | 1 | type error: can not unify |
2 | 'Internals.lc:63:6: | 2 | <<installed-prelude-path>>/Internals.lc:63:6: |
3 | data Bool = False | True | 3 | data Bool = False | True |
4 | ^^^^ | 4 | ^^^^ |
5 | with | 5 | with |
6 | 'Internals.lc:58:6: | 6 | <<installed-prelude-path>>/Internals.lc:58:6: |
7 | data Int | 7 | data Int |
8 | ^^^ | 8 | ^^^ |
9 | in proj | 9 | in proj |
@@ -18,36 +18,36 @@ case'Data3 | |||
18 | -> forall (h :: Data3) -> a h | 18 | -> forall (h :: Data3) -> a h |
19 | match'Data3 :: forall (a :: Type -> Type) -> a Data3 -> forall b -> a b -> a b | 19 | match'Data3 :: forall (a :: Type -> Type) -> a Data3 -> forall b -> a b -> a b |
20 | !type error: can not unify | 20 | !type error: can not unify |
21 | 'Internals.lc:63:6: | 21 | <<installed-prelude-path>>/Internals.lc:63:6: |
22 | data Bool = False | True | 22 | data Bool = False | True |
23 | ^^^^ | 23 | ^^^^ |
24 | with | 24 | with |
25 | 'Internals.lc:58:6: | 25 | <<installed-prelude-path>>/Internals.lc:58:6: |
26 | data Int | 26 | data Int |
27 | ^^^ | 27 | ^^^ |
28 | in proj | 28 | in proj |
29 | ------------ tooltips | 29 | ------------ tooltips |
30 | adt02.reject.lc 2:6-2:11 | 30 | 2:6-2:11 |
31 | Type | Type | Type | Type | Type | Type | Type | Type | 31 | Type | Type | Type | Type | Type | Type | Type | Type |
32 | adt02.reject.lc 2:6-5:25 | 32 | 2:6-5:25 |
33 | Type | Type | 33 | Type | Type |
34 | adt02.reject.lc 2:6-7:11 | 34 | 2:6-7:11 |
35 | Type | Type | 35 | Type | Type |
36 | adt02.reject.lc 2:6-10:20 | 36 | 2:6-10:20 |
37 | Type | Type | 37 | Type | Type |
38 | adt02.reject.lc 3:5-3:10 | 38 | 3:5-3:10 |
39 | Bool -> Char -> Bool -> Data3 | Data3 | Type | Type | Type | Type | 39 | Bool -> Char -> Bool -> Data3 | Data3 | Type | Type | Type | Type |
40 | adt02.reject.lc 3:21-3:25 | 40 | 3:21-3:25 |
41 | Type | 41 | Type |
42 | adt02.reject.lc 4:21-4:25 | 42 | 4:21-4:25 |
43 | Type | 43 | Type |
44 | adt02.reject.lc 5:21-5:25 | 44 | 5:21-5:25 |
45 | Type | 45 | Type |
46 | adt02.reject.lc 7:5-7:11 | 46 | 7:5-7:11 |
47 | Int -> String -> Int -> Data3 | Data3 | Type | Type | Type | Type | 47 | Int -> String -> Int -> Data3 | Data3 | Type | Type | Type | Type |
48 | adt02.reject.lc 8:17-8:20 | 48 | 8:17-8:20 |
49 | Type | 49 | Type |
50 | adt02.reject.lc 9:17-9:23 | 50 | 9:17-9:23 |
51 | Type | 51 | Type |
52 | adt02.reject.lc 10:17-10:20 | 52 | 10:17-10:20 |
53 | Type \ No newline at end of file | 53 | Type \ No newline at end of file |
diff --git a/testdata/language-features/adt/adt03.reject.out b/testdata/language-features/adt/adt03.reject.out index 4296561e..51c1f1ad 100644 --- a/testdata/language-features/adt/adt03.reject.out +++ b/testdata/language-features/adt/adt03.reject.out | |||
@@ -1,11 +1,11 @@ | |||
1 | can't find: a in adt03.reject.lc:2:20: | 1 | can't find: a in ./testdata/language-features/adt/adt03.reject.lc:2:20: |
2 | data Data3 = Data3 a b c | 2 | data Data3 = Data3 a b c |
3 | ^ | 3 | ^ |
4 | ------------ trace | 4 | ------------ trace |
5 | 'Data3 :: Type | 5 | 'Data3 :: Type |
6 | !can't find: a in adt03.reject.lc:2:20: | 6 | !can't find: a in ./testdata/language-features/adt/adt03.reject.lc:2:20: |
7 | data Data3 = Data3 a b c | 7 | data Data3 = Data3 a b c |
8 | ^ | 8 | ^ |
9 | ------------ tooltips | 9 | ------------ tooltips |
10 | adt03.reject.lc 2:6-2:11 | 10 | 2:6-2:11 |
11 | Type \ No newline at end of file | 11 | Type \ No newline at end of file |
diff --git a/testdata/language-features/adt/adt04.reject.out b/testdata/language-features/adt/adt04.reject.out index 5a605902..7ec3f438 100644 --- a/testdata/language-features/adt/adt04.reject.out +++ b/testdata/language-features/adt/adt04.reject.out | |||
@@ -1,11 +1,11 @@ | |||
1 | can't find: a in adt04.reject.lc:2:27: | 1 | can't find: a in ./testdata/language-features/adt/adt04.reject.lc:2:27: |
2 | data Data3 = Data3 { x :: a , y :: b , z :: c } | 2 | data Data3 = Data3 { x :: a , y :: b , z :: c } |
3 | ^ | 3 | ^ |
4 | ------------ trace | 4 | ------------ trace |
5 | 'Data3 :: Type | 5 | 'Data3 :: Type |
6 | !can't find: a in adt04.reject.lc:2:27: | 6 | !can't find: a in ./testdata/language-features/adt/adt04.reject.lc:2:27: |
7 | data Data3 = Data3 { x :: a , y :: b , z :: c } | 7 | data Data3 = Data3 { x :: a , y :: b , z :: c } |
8 | ^ | 8 | ^ |
9 | ------------ tooltips | 9 | ------------ tooltips |
10 | adt04.reject.lc 2:6-2:11 | 10 | 2:6-2:11 |
11 | Type \ No newline at end of file | 11 | Type \ No newline at end of file |
diff --git a/testdata/language-features/adt/adt05.out b/testdata/language-features/adt/adt05.out index 5e37e669..777c9003 100644 --- a/testdata/language-features/adt/adt05.out +++ b/testdata/language-features/adt/adt05.out | |||
@@ -66,77 +66,77 @@ value1 = _rhs TEmpty | |||
66 | value2 :: forall a . Num a => TList a | 66 | value2 :: forall a . Num a => TList a |
67 | value2 = \a b -> _rhs (TCons (fromInt a b 3) TEmpty) | 67 | value2 = \a b -> _rhs (TCons (fromInt a b 3) TEmpty) |
68 | ------------ tooltips | 68 | ------------ tooltips |
69 | adt05.lc 3:6-3:11 | 69 | 3:6-3:11 |
70 | Type -> Type | Type -> Type | Type -> Type | Type -> Type | Type -> Type | Type | 70 | Type -> Type | Type -> Type | Type -> Type | Type -> Type | Type -> Type | Type |
71 | adt05.lc 3:6-3:13 | 71 | 3:6-3:13 |
72 | Type | Type | Type | Type | 72 | Type | Type | Type | Type |
73 | adt05.lc 3:6-3:30 | 73 | 3:6-3:30 |
74 | Type | Type | Type | 74 | Type | Type | Type |
75 | adt05.lc 3:6-3:42 | 75 | 3:6-3:42 |
76 | Type | Type | 76 | Type | Type |
77 | adt05.lc 3:12-3:13 | 77 | 3:12-3:13 |
78 | Type | Type | 78 | Type | Type |
79 | adt05.lc 3:16-3:22 | 79 | 3:16-3:22 |
80 | forall a . TList a | TList _b | 80 | forall a . TList a | TList _b |
81 | adt05.lc 3:25-3:30 | 81 | 3:25-3:30 |
82 | forall a . a -> TList a -> TList a | TList _e | Type | Type | Type | 82 | forall a . a -> TList a -> TList a | TList _e | Type | Type | Type |
83 | adt05.lc 3:31-3:32 | 83 | 3:31-3:32 |
84 | Type | 84 | Type |
85 | adt05.lc 3:34-3:39 | 85 | 3:34-3:39 |
86 | Type -> Type | 86 | Type -> Type |
87 | adt05.lc 3:34-3:41 | 87 | 3:34-3:41 |
88 | Type | 88 | Type |
89 | adt05.lc 3:40-3:41 | 89 | 3:40-3:41 |
90 | Type | 90 | Type |
91 | adt05.lc 5:1-5:7 | 91 | 5:1-5:7 |
92 | forall a . TList a | 92 | forall a . TList a |
93 | adt05.lc 5:10-5:16 | 93 | 5:10-5:16 |
94 | forall a . TList a | 94 | forall a . TList a |
95 | adt05.lc 6:1-6:7 | 95 | 6:1-6:7 |
96 | forall a . Num a => TList a | 96 | forall a . Num a => TList a |
97 | adt05.lc 6:10-6:15 | 97 | 6:10-6:15 |
98 | forall a . a -> TList a -> TList a | 98 | forall a . a -> TList a -> TList a |
99 | adt05.lc 6:10-6:17 | 99 | 6:10-6:17 |
100 | TList _b -> TList _b | 100 | TList _b -> TList _b |
101 | adt05.lc 6:10-6:24 | 101 | 6:10-6:24 |
102 | TList _b | 102 | TList _b |
103 | adt05.lc 6:16-6:17 | 103 | 6:16-6:17 |
104 | _b | 104 | _b |
105 | adt05.lc 6:18-6:24 | 105 | 6:18-6:24 |
106 | forall a . TList a | 106 | forall a . TList a |
107 | adt05.lc 8:1-8:8 | 107 | 8:1-8:8 |
108 | forall a . TList a -> Bool | 108 | forall a . TList a -> Bool |
109 | adt05.lc 8:18-8:22 | 109 | 8:18-8:22 |
110 | Bool | 110 | Bool |
111 | adt05.lc 8:18-9:23 | 111 | 8:18-9:23 |
112 | TList _a -> Bool | 112 | TList _a -> Bool |
113 | adt05.lc 9:18-9:23 | 113 | 9:18-9:23 |
114 | Bool | 114 | Bool |
115 | adt05.lc 11:1-11:7 | 115 | 11:1-11:7 |
116 | forall a . TList a -> Bool | 116 | forall a . TList a -> Bool |
117 | adt05.lc 11:22-11:26 | 117 | 11:22-11:26 |
118 | Bool | 118 | Bool |
119 | adt05.lc 11:22-12:27 | 119 | 11:22-12:27 |
120 | TList _a -> Bool | 120 | TList _a -> Bool |
121 | adt05.lc 12:22-12:27 | 121 | 12:22-12:27 |
122 | Bool | 122 | Bool |
123 | adt05.lc 14:1-14:5 | 123 | 14:1-14:5 |
124 | @Type -> forall a . Num a => Bool | 124 | @Type -> forall a . Num a => Bool |
125 | adt05.lc 14:8-14:15 | 125 | 14:8-14:15 |
126 | forall a . TList a -> Bool | 126 | forall a . TList a -> Bool |
127 | adt05.lc 14:8-14:22 | 127 | 14:8-14:22 |
128 | Bool | 128 | Bool |
129 | adt05.lc 14:8-14:25 | 129 | 14:8-14:25 |
130 | Bool -> Bool | 130 | Bool -> Bool |
131 | adt05.lc 14:8-14:39 | 131 | 14:8-14:39 |
132 | Bool | 132 | Bool |
133 | adt05.lc 14:16-14:22 | 133 | 14:16-14:22 |
134 | forall a . TList a | 134 | forall a . TList a |
135 | adt05.lc 14:23-14:25 | 135 | 14:23-14:25 |
136 | Bool -> Bool -> Bool | 136 | Bool -> Bool -> Bool |
137 | adt05.lc 14:26-14:32 | 137 | 14:26-14:32 |
138 | forall a . TList a -> Bool | 138 | forall a . TList a -> Bool |
139 | adt05.lc 14:26-14:39 | 139 | 14:26-14:39 |
140 | Bool | 140 | Bool |
141 | adt05.lc 14:33-14:39 | 141 | 14:33-14:39 |
142 | forall a . Num a => TList a \ No newline at end of file | 142 | forall a . Num a => TList a \ No newline at end of file |
diff --git a/testdata/language-features/adt/gadt01.out b/testdata/language-features/adt/gadt01.out index a88a5bec..0a4d5138 100644 --- a/testdata/language-features/adt/gadt01.out +++ b/testdata/language-features/adt/gadt01.out | |||
@@ -125,252 +125,252 @@ value2 = _rhs (Value2 True "s") | |||
125 | value3 :: M3 Bool "t" | 125 | value3 :: M3 Bool "t" |
126 | value3 = _rhs (Value3 "t" True) | 126 | value3 = _rhs (Value3 "t" True) |
127 | ------------ tooltips | 127 | ------------ tooltips |
128 | gadt01.lc 2:6-2:7 | 128 | 2:6-2:7 |
129 | Nat -> Type -> Type | Nat -> Type -> Type | Type | Type | Nat | 129 | Nat -> Type -> Type | Nat -> Type -> Type | Type | Type | Nat |
130 | -> Type -> Type | Type | Type | Type | 130 | -> Type -> Type | Type | Type | Type |
131 | gadt01.lc 2:6-4:25 | 131 | 2:6-4:25 |
132 | Type | Type | 132 | Type | Type |
133 | gadt01.lc 2:11-2:14 | 133 | 2:11-2:14 |
134 | Type | 134 | Type |
135 | gadt01.lc 2:18-2:22 | 135 | 2:18-2:22 |
136 | Type | 136 | Type |
137 | gadt01.lc 2:18-2:30 | 137 | 2:18-2:30 |
138 | Type | 138 | Type |
139 | gadt01.lc 2:26-2:30 | 139 | 2:26-2:30 |
140 | Type | Type | 140 | Type | Type |
141 | gadt01.lc 3:3-3:6 | 141 | 3:3-3:6 |
142 | forall a . a -> V 1 a | V 1 _b | 142 | forall a . a -> V 1 a | V 1 _b |
143 | gadt01.lc 3:3-3:20 | 143 | 3:3-3:20 |
144 | Type | Type | Type | 144 | Type | Type | Type |
145 | gadt01.lc 3:10-3:11 | 145 | 3:10-3:11 |
146 | _b | 146 | _b |
147 | gadt01.lc 3:10-3:20 | 147 | 3:10-3:20 |
148 | Type | 148 | Type |
149 | gadt01.lc 3:15-3:16 | 149 | 3:15-3:16 |
150 | Nat -> Type -> Type | 150 | Nat -> Type -> Type |
151 | gadt01.lc 3:15-3:18 | 151 | 3:15-3:18 |
152 | Type -> Type | 152 | Type -> Type |
153 | gadt01.lc 3:15-3:20 | 153 | 3:15-3:20 |
154 | Type | Type | 154 | Type | Type |
155 | gadt01.lc 3:17-3:18 | 155 | 3:17-3:18 |
156 | _b | _b | 156 | _b | _b |
157 | gadt01.lc 3:17-3:20 | 157 | 3:17-3:20 |
158 | V 1 _b -> Type | 158 | V 1 _b -> Type |
159 | gadt01.lc 3:19-3:20 | 159 | 3:19-3:20 |
160 | Type | Type | 160 | Type | Type |
161 | gadt01.lc 4:3-4:6 | 161 | 4:3-4:6 |
162 | forall a . a -> a -> V 2 a | V 2 _c | 162 | forall a . a -> a -> V 2 a | V 2 _c |
163 | gadt01.lc 4:3-4:25 | 163 | 4:3-4:25 |
164 | Type | Type | Type | Type | 164 | Type | Type | Type | Type |
165 | gadt01.lc 4:10-4:11 | 165 | 4:10-4:11 |
166 | _b | 166 | _b |
167 | gadt01.lc 4:10-4:25 | 167 | 4:10-4:25 |
168 | Type | 168 | Type |
169 | gadt01.lc 4:15-4:16 | 169 | 4:15-4:16 |
170 | Type | 170 | Type |
171 | gadt01.lc 4:15-4:25 | 171 | 4:15-4:25 |
172 | Type | 172 | Type |
173 | gadt01.lc 4:20-4:21 | 173 | 4:20-4:21 |
174 | Nat -> Type -> Type | 174 | Nat -> Type -> Type |
175 | gadt01.lc 4:20-4:23 | 175 | 4:20-4:23 |
176 | Type -> Type | 176 | Type -> Type |
177 | gadt01.lc 4:20-4:25 | 177 | 4:20-4:25 |
178 | Type | Type | 178 | Type | Type |
179 | gadt01.lc 4:22-4:23 | 179 | 4:22-4:23 |
180 | _b | _b | 180 | _b | _b |
181 | gadt01.lc 4:22-4:25 | 181 | 4:22-4:25 |
182 | V 2 _c -> Type | 182 | V 2 _c -> Type |
183 | gadt01.lc 4:24-4:25 | 183 | 4:24-4:25 |
184 | Type | Type | 184 | Type | Type |
185 | gadt01.lc 6:6-6:7 | 185 | 6:6-6:7 |
186 | Type -> String -> Type | Type -> String -> Type | Type | Type | Type | 186 | Type -> String -> Type | Type -> String -> Type | Type | Type | Type |
187 | -> String -> Type | Type | Type | Type | 187 | -> String -> Type | Type | Type | Type |
188 | gadt01.lc 6:6-7:33 | 188 | 6:6-7:33 |
189 | Type | 189 | Type |
190 | gadt01.lc 6:11-6:15 | 190 | 6:11-6:15 |
191 | Type | 191 | Type |
192 | gadt01.lc 6:19-6:25 | 192 | 6:19-6:25 |
193 | Type | 193 | Type |
194 | gadt01.lc 6:19-6:33 | 194 | 6:19-6:33 |
195 | Type | 195 | Type |
196 | gadt01.lc 6:29-6:33 | 196 | 6:29-6:33 |
197 | Type | Type | 197 | Type | Type |
198 | gadt01.lc 7:3-7:8 | 198 | 7:3-7:8 |
199 | forall a . a -> forall (b :: String) . M a b | M _c _a | 199 | forall a . a -> forall (b :: String) . M a b | M _c _a |
200 | gadt01.lc 7:3-7:33 | 200 | 7:3-7:33 |
201 | Type | Type | Type | Type | 201 | Type | Type | Type | Type |
202 | gadt01.lc 7:12-7:13 | 202 | 7:12-7:13 |
203 | _b | 203 | _b |
204 | gadt01.lc 7:12-7:33 | 204 | 7:12-7:33 |
205 | Type | 205 | Type |
206 | gadt01.lc 7:17-7:33 | 206 | 7:17-7:33 |
207 | Type | 207 | Type |
208 | gadt01.lc 7:28-7:29 | 208 | 7:28-7:29 |
209 | Type -> String -> Type | 209 | Type -> String -> Type |
210 | gadt01.lc 7:28-7:31 | 210 | 7:28-7:31 |
211 | String -> Type | 211 | String -> Type |
212 | gadt01.lc 7:28-7:33 | 212 | 7:28-7:33 |
213 | Type | Type | 213 | Type | Type |
214 | gadt01.lc 7:30-7:31 | 214 | 7:30-7:31 |
215 | Type | Type | 215 | Type | Type |
216 | gadt01.lc 7:30-7:33 | 216 | 7:30-7:33 |
217 | M _c _a -> Type | 217 | M _c _a -> Type |
218 | gadt01.lc 7:32-7:33 | 218 | 7:32-7:33 |
219 | _b | String | 219 | _b | String |
220 | gadt01.lc 9:6-9:8 | 220 | 9:6-9:8 |
221 | Type -> String -> Type | Type -> String -> Type | Type | Type | 221 | Type -> String -> Type | Type -> String -> Type | Type | Type |
222 | -> String -> Type | Type | Type | 222 | -> String -> Type | Type | Type |
223 | gadt01.lc 9:6-10:35 | 223 | 9:6-10:35 |
224 | Type | Type | 224 | Type | Type |
225 | gadt01.lc 9:15-9:19 | 225 | 9:15-9:19 |
226 | Type | Type | Type | 226 | Type | Type | Type |
227 | gadt01.lc 9:24-9:30 | 227 | 9:24-9:30 |
228 | Type | 228 | Type |
229 | gadt01.lc 9:24-9:38 | 229 | 9:24-9:38 |
230 | Type | 230 | Type |
231 | gadt01.lc 9:34-9:38 | 231 | 9:34-9:38 |
232 | Type | Type | 232 | Type | Type |
233 | gadt01.lc 10:3-10:9 | 233 | 10:3-10:9 |
234 | forall a . a -> forall (b :: String) . M2 a b | M2 _d _a | 234 | forall a . a -> forall (b :: String) . M2 a b | M2 _d _a |
235 | gadt01.lc 10:3-10:35 | 235 | 10:3-10:35 |
236 | Type | Type | Type | 236 | Type | Type | Type |
237 | gadt01.lc 10:13-10:14 | 237 | 10:13-10:14 |
238 | Type | 238 | Type |
239 | gadt01.lc 10:13-10:35 | 239 | 10:13-10:35 |
240 | Type | 240 | Type |
241 | gadt01.lc 10:18-10:35 | 241 | 10:18-10:35 |
242 | Type | 242 | Type |
243 | gadt01.lc 10:29-10:31 | 243 | 10:29-10:31 |
244 | Type -> String -> Type | 244 | Type -> String -> Type |
245 | gadt01.lc 10:29-10:33 | 245 | 10:29-10:33 |
246 | String -> Type | 246 | String -> Type |
247 | gadt01.lc 10:29-10:35 | 247 | 10:29-10:35 |
248 | Type | Type | 248 | Type | Type |
249 | gadt01.lc 10:32-10:33 | 249 | 10:32-10:33 |
250 | Type | 250 | Type |
251 | gadt01.lc 10:34-10:35 | 251 | 10:34-10:35 |
252 | _b | String | 252 | _b | String |
253 | gadt01.lc 12:6-12:8 | 253 | 12:6-12:8 |
254 | Type -> String -> Type | Type -> String -> Type | Type | Type | 254 | Type -> String -> Type | Type -> String -> Type | Type | Type |
255 | -> String -> Type | Type | Type | 255 | -> String -> Type | Type | Type |
256 | gadt01.lc 12:6-13:35 | 256 | 12:6-13:35 |
257 | Type | Type | 257 | Type | Type |
258 | gadt01.lc 12:15-12:19 | 258 | 12:15-12:19 |
259 | Type | Type | Type | 259 | Type | Type | Type |
260 | gadt01.lc 12:24-12:30 | 260 | 12:24-12:30 |
261 | Type | 261 | Type |
262 | gadt01.lc 12:24-12:38 | 262 | 12:24-12:38 |
263 | Type | 263 | Type |
264 | gadt01.lc 12:34-12:38 | 264 | 12:34-12:38 |
265 | Type | Type | 265 | Type | Type |
266 | gadt01.lc 13:3-13:9 | 266 | 13:3-13:9 |
267 | forall a (b :: String) . a -> M3 a b | M3 _d _b | 267 | forall a (b :: String) . a -> M3 a b | M3 _d _b |
268 | gadt01.lc 13:3-13:35 | 268 | 13:3-13:35 |
269 | Type | Type | Type | 269 | Type | Type | Type |
270 | gadt01.lc 13:13-13:35 | 270 | 13:13-13:35 |
271 | Type | 271 | Type |
272 | gadt01.lc 13:24-13:25 | 272 | 13:24-13:25 |
273 | Type | 273 | Type |
274 | gadt01.lc 13:24-13:35 | 274 | 13:24-13:35 |
275 | Type | 275 | Type |
276 | gadt01.lc 13:29-13:31 | 276 | 13:29-13:31 |
277 | Type -> String -> Type | 277 | Type -> String -> Type |
278 | gadt01.lc 13:29-13:33 | 278 | 13:29-13:33 |
279 | String -> Type | 279 | String -> Type |
280 | gadt01.lc 13:29-13:35 | 280 | 13:29-13:35 |
281 | Type | Type | 281 | Type | Type |
282 | gadt01.lc 13:32-13:33 | 282 | 13:32-13:33 |
283 | Type | 283 | Type |
284 | gadt01.lc 13:34-13:35 | 284 | 13:34-13:35 |
285 | _c | String | 285 | _c | String |
286 | gadt01.lc 17:1-17:2 | 286 | 17:1-17:2 |
287 | forall a (b :: String) . M2 a b -> a | 287 | forall a (b :: String) . M2 a b -> a |
288 | gadt01.lc 17:5-17:12 | 288 | 17:5-17:12 |
289 | forall a | 289 | forall a |
290 | . forall (b :: forall (c :: String) -> M2 a c -> Type) | 290 | . forall (b :: forall (c :: String) -> M2 a c -> Type) |
291 | -> (forall (d :: a) -> forall (e :: String) . b e ('Value2 d e)) | 291 | -> (forall (d :: a) -> forall (e :: String) . b e ('Value2 d e)) |
292 | -> forall (f :: String) . forall (g :: M2 a f) -> b f g | 292 | -> forall (f :: String) . forall (g :: M2 a f) -> b f g |
293 | gadt01.lc 17:5-17:24 | 293 | 17:5-17:24 |
294 | (forall (a :: _b) -> @String -> _a) -> forall (b :: String) . M2 _b b -> _a | 294 | (forall (a :: _b) -> @String -> _a) -> forall (b :: String) . M2 _b b -> _a |
295 | gadt01.lc 17:5-17:37 | 295 | 17:5-17:37 |
296 | forall (a :: String) . M2 _a a -> _a | 296 | forall (a :: String) . M2 _a a -> _a |
297 | gadt01.lc 17:35-17:36 | 297 | 17:35-17:36 |
298 | _d | 298 | _d |
299 | gadt01.lc 19:1-19:2 | 299 | 19:1-19:2 |
300 | forall a (b :: String) . M3 a b -> a | 300 | forall a (b :: String) . M3 a b -> a |
301 | gadt01.lc 19:16-19:17 | 301 | 19:16-19:17 |
302 | _d | 302 | _d |
303 | gadt01.lc 21:11-21:12 | 303 | 21:11-21:12 |
304 | Type -> String -> Type | 304 | Type -> String -> Type |
305 | gadt01.lc 21:11-21:17 | 305 | 21:11-21:17 |
306 | String -> Type | 306 | String -> Type |
307 | gadt01.lc 21:11-21:21 | 307 | 21:11-21:21 |
308 | Type | 308 | Type |
309 | gadt01.lc 21:13-21:17 | 309 | 21:13-21:17 |
310 | Type | 310 | Type |
311 | gadt01.lc 21:18-21:21 | 311 | 21:18-21:21 |
312 | String | 312 | String |
313 | gadt01.lc 22:1-22:7 | 313 | 22:1-22:7 |
314 | M Bool "m" | 314 | M Bool "m" |
315 | gadt01.lc 22:10-22:15 | 315 | 22:10-22:15 |
316 | forall a . a -> forall (b :: String) . M a b | 316 | forall a . a -> forall (b :: String) . M a b |
317 | gadt01.lc 22:10-22:20 | 317 | 22:10-22:20 |
318 | forall (a :: String) . M Bool a | 318 | forall (a :: String) . M Bool a |
319 | gadt01.lc 22:16-22:20 | 319 | 22:16-22:20 |
320 | Bool | 320 | Bool |
321 | gadt01.lc 24:11-24:13 | 321 | 24:11-24:13 |
322 | Type -> String -> Type | 322 | Type -> String -> Type |
323 | gadt01.lc 24:11-24:18 | 323 | 24:11-24:18 |
324 | String -> Type | 324 | String -> Type |
325 | gadt01.lc 24:11-24:22 | 325 | 24:11-24:22 |
326 | Type | 326 | Type |
327 | gadt01.lc 24:14-24:18 | 327 | 24:14-24:18 |
328 | Type | 328 | Type |
329 | gadt01.lc 24:19-24:22 | 329 | 24:19-24:22 |
330 | String | 330 | String |
331 | gadt01.lc 25:1-25:7 | 331 | 25:1-25:7 |
332 | M2 Bool "s" | 332 | M2 Bool "s" |
333 | gadt01.lc 25:10-25:16 | 333 | 25:10-25:16 |
334 | forall a . a -> forall (b :: String) . M2 a b | 334 | forall a . a -> forall (b :: String) . M2 a b |
335 | gadt01.lc 25:10-25:21 | 335 | 25:10-25:21 |
336 | forall (a :: String) . M2 Bool a | 336 | forall (a :: String) . M2 Bool a |
337 | gadt01.lc 25:17-25:21 | 337 | 25:17-25:21 |
338 | Bool | 338 | Bool |
339 | gadt01.lc 27:11-27:13 | 339 | 27:11-27:13 |
340 | Type -> String -> Type | 340 | Type -> String -> Type |
341 | gadt01.lc 27:11-27:18 | 341 | 27:11-27:18 |
342 | String -> Type | 342 | String -> Type |
343 | gadt01.lc 27:11-27:22 | 343 | 27:11-27:22 |
344 | Type | 344 | Type |
345 | gadt01.lc 27:14-27:18 | 345 | 27:14-27:18 |
346 | Type | 346 | Type |
347 | gadt01.lc 27:19-27:22 | 347 | 27:19-27:22 |
348 | String | 348 | String |
349 | gadt01.lc 28:1-28:7 | 349 | 28:1-28:7 |
350 | M3 Bool "t" | 350 | M3 Bool "t" |
351 | gadt01.lc 28:10-28:16 | 351 | 28:10-28:16 |
352 | forall a (b :: String) . a -> M3 a b | 352 | forall a (b :: String) . a -> M3 a b |
353 | gadt01.lc 28:10-28:21 | 353 | 28:10-28:21 |
354 | M3 Bool _a | 354 | M3 Bool _a |
355 | gadt01.lc 28:17-28:21 | 355 | 28:17-28:21 |
356 | Bool | 356 | Bool |
357 | gadt01.lc 30:1-30:5 | 357 | 30:1-30:5 |
358 | Bool | 358 | Bool |
359 | gadt01.lc 30:8-30:9 | 359 | 30:8-30:9 |
360 | forall a (b :: String) . M2 a b -> a | 360 | forall a (b :: String) . M2 a b -> a |
361 | gadt01.lc 30:8-30:16 | 361 | 30:8-30:16 |
362 | Bool | 362 | Bool |
363 | gadt01.lc 30:8-30:19 | 363 | 30:8-30:19 |
364 | Bool -> Bool | 364 | Bool -> Bool |
365 | gadt01.lc 30:8-30:28 | 365 | 30:8-30:28 |
366 | Bool | 366 | Bool |
367 | gadt01.lc 30:10-30:16 | 367 | 30:10-30:16 |
368 | M2 Bool "s" | 368 | M2 Bool "s" |
369 | gadt01.lc 30:17-30:19 | 369 | 30:17-30:19 |
370 | Bool -> Bool -> Bool | 370 | Bool -> Bool -> Bool |
371 | gadt01.lc 30:20-30:21 | 371 | 30:20-30:21 |
372 | forall a (b :: String) . M3 a b -> a | 372 | forall a (b :: String) . M3 a b -> a |
373 | gadt01.lc 30:20-30:28 | 373 | 30:20-30:28 |
374 | Bool | 374 | Bool |
375 | gadt01.lc 30:22-30:28 | 375 | 30:22-30:28 |
376 | M3 Bool "t" \ No newline at end of file | 376 | M3 Bool "t" \ No newline at end of file |
diff --git a/testdata/language-features/adt/gadt01.reject.out b/testdata/language-features/adt/gadt01.reject.out index d5a59c56..7010122f 100644 --- a/testdata/language-features/adt/gadt01.reject.out +++ b/testdata/language-features/adt/gadt01.reject.out | |||
@@ -3,9 +3,9 @@ illegal data definition (parameters are not uniform) | |||
3 | 'M3 :: Type -> String -> Type | 3 | 'M3 :: Type -> String -> Type |
4 | !illegal data definition (parameters are not uniform) | 4 | !illegal data definition (parameters are not uniform) |
5 | ------------ tooltips | 5 | ------------ tooltips |
6 | gadt01.reject.lc 5:6-5:8 | 6 | 5:6-5:8 |
7 | Type -> String -> Type | 7 | Type -> String -> Type |
8 | gadt01.reject.lc 5:15-5:19 | 8 | 5:15-5:19 |
9 | Type | 9 | Type |
10 | gadt01.reject.lc 5:27-5:33 | 10 | 5:27-5:33 |
11 | Type | Type \ No newline at end of file | 11 | Type | Type \ No newline at end of file |
diff --git a/testdata/language-features/adt/gadt02.reject.out b/testdata/language-features/adt/gadt02.reject.out index 9fd5aa56..81d07dc0 100644 --- a/testdata/language-features/adt/gadt02.reject.out +++ b/testdata/language-features/adt/gadt02.reject.out | |||
@@ -1,3 +1,3 @@ | |||
1 | testdata/language-features/adt/gadt02.reject.lc:2:9: | 1 | ./testdata/language-features/adt/gadt02.reject.lc:2:9: |
2 | unexpected 'T' | 2 | unexpected 'T' |
3 | expecting "::", "where", '=', '@', ::, end of input, or lowercase ident | 3 | expecting "::", "where", '=', '@', ::, end of input, or lowercase ident \ No newline at end of file |
diff --git a/testdata/language-features/adt/gadt03.reject.out b/testdata/language-features/adt/gadt03.reject.out index ee28c6db..49b41b83 100644 --- a/testdata/language-features/adt/gadt03.reject.out +++ b/testdata/language-features/adt/gadt03.reject.out | |||
@@ -13,46 +13,46 @@ match'M2 | |||
13 | 'M3 :: Type -> String -> Type | 13 | 'M3 :: Type -> String -> Type |
14 | !illegal data definition (parameters are not uniform) | 14 | !illegal data definition (parameters are not uniform) |
15 | ------------ tooltips | 15 | ------------ tooltips |
16 | gadt03.reject.lc 2:6-2:8 | 16 | 2:6-2:8 |
17 | Type -> String -> Type | Type -> String -> Type | Type | Type | 17 | Type -> String -> Type | Type -> String -> Type | Type | Type |
18 | -> String -> Type | Type | Type | 18 | -> String -> Type | Type | Type |
19 | gadt03.reject.lc 2:6-3:35 | 19 | 2:6-3:35 |
20 | Type | Type | 20 | Type | Type |
21 | gadt03.reject.lc 2:15-2:19 | 21 | 2:15-2:19 |
22 | Type | Type | Type | 22 | Type | Type | Type |
23 | gadt03.reject.lc 2:24-2:30 | 23 | 2:24-2:30 |
24 | Type | 24 | Type |
25 | gadt03.reject.lc 2:24-2:38 | 25 | 2:24-2:38 |
26 | Type | 26 | Type |
27 | gadt03.reject.lc 2:34-2:38 | 27 | 2:34-2:38 |
28 | Type | Type | 28 | Type | Type |
29 | gadt03.reject.lc 3:3-3:9 | 29 | 3:3-3:9 |
30 | forall a . a -> forall (b :: String) . M2 a b | M2 _d _a | 30 | forall a . a -> forall (b :: String) . M2 a b | M2 _d _a |
31 | gadt03.reject.lc 3:3-3:35 | 31 | 3:3-3:35 |
32 | Type | Type | Type | 32 | Type | Type | Type |
33 | gadt03.reject.lc 3:13-3:14 | 33 | 3:13-3:14 |
34 | Type | 34 | Type |
35 | gadt03.reject.lc 3:13-3:35 | 35 | 3:13-3:35 |
36 | Type | 36 | Type |
37 | gadt03.reject.lc 3:18-3:35 | 37 | 3:18-3:35 |
38 | Type | 38 | Type |
39 | gadt03.reject.lc 3:29-3:31 | 39 | 3:29-3:31 |
40 | Type -> String -> Type | 40 | Type -> String -> Type |
41 | gadt03.reject.lc 3:29-3:33 | 41 | 3:29-3:33 |
42 | String -> Type | 42 | String -> Type |
43 | gadt03.reject.lc 3:29-3:35 | 43 | 3:29-3:35 |
44 | Type | Type | 44 | Type | Type |
45 | gadt03.reject.lc 3:32-3:33 | 45 | 3:32-3:33 |
46 | Type | 46 | Type |
47 | gadt03.reject.lc 3:34-3:35 | 47 | 3:34-3:35 |
48 | _b | String | 48 | _b | String |
49 | gadt03.reject.lc 5:6-5:8 | 49 | 5:6-5:8 |
50 | Type -> String -> Type | 50 | Type -> String -> Type |
51 | gadt03.reject.lc 5:15-5:19 | 51 | 5:15-5:19 |
52 | Type | 52 | Type |
53 | gadt03.reject.lc 5:24-5:30 | 53 | 5:24-5:30 |
54 | Type | 54 | Type |
55 | gadt03.reject.lc 5:24-5:38 | 55 | 5:24-5:38 |
56 | Type | 56 | Type |
57 | gadt03.reject.lc 5:34-5:38 | 57 | 5:34-5:38 |
58 | Type | Type \ No newline at end of file | 58 | Type | Type \ No newline at end of file |
diff --git a/testdata/language-features/adt/gadt04.reject.out b/testdata/language-features/adt/gadt04.reject.out index 1d03ccc1..515f2069 100644 --- a/testdata/language-features/adt/gadt04.reject.out +++ b/testdata/language-features/adt/gadt04.reject.out | |||
@@ -1,7 +1,7 @@ | |||
1 | already defined Value at gadt04.reject.lc:6:3: | 1 | already defined Value at ./testdata/language-features/adt/gadt04.reject.lc:6:3: |
2 | Value :: a -> forall m . M2 a m | 2 | Value :: a -> forall m . M2 a m |
3 | ^^^^^ | 3 | ^^^^^ |
4 | and at gadt04.reject.lc:3:3: | 4 | and at ./testdata/language-features/adt/gadt04.reject.lc:3:3: |
5 | Value :: a -> forall m . M a m | 5 | Value :: a -> forall m . M a m |
6 | ^^^^^ | 6 | ^^^^^ |
7 | ------------ trace | 7 | ------------ trace |
@@ -16,71 +16,71 @@ match'M | |||
16 | -> (forall b (c :: String) -> a (M b c)) -> forall d -> a d -> a d | 16 | -> (forall b (c :: String) -> a (M b c)) -> forall d -> a d -> a d |
17 | 'M2 :: Type -> String -> Type | 17 | 'M2 :: Type -> String -> Type |
18 | Value :: forall a . a -> forall (b :: String) . M2 a b | 18 | Value :: forall a . a -> forall (b :: String) . M2 a b |
19 | !already defined Value at gadt04.reject.lc:6:3: | 19 | !already defined Value at ./testdata/language-features/adt/gadt04.reject.lc:6:3: |
20 | Value :: a -> forall m . M2 a m | 20 | Value :: a -> forall m . M2 a m |
21 | ^^^^^ | 21 | ^^^^^ |
22 | and at gadt04.reject.lc:3:3: | 22 | and at ./testdata/language-features/adt/gadt04.reject.lc:3:3: |
23 | Value :: a -> forall m . M a m | 23 | Value :: a -> forall m . M a m |
24 | ^^^^^ | 24 | ^^^^^ |
25 | ------------ tooltips | 25 | ------------ tooltips |
26 | gadt04.reject.lc 2:6-2:7 | 26 | 2:6-2:7 |
27 | Type -> String -> Type | Type -> String -> Type | Type | Type | Type | 27 | Type -> String -> Type | Type -> String -> Type | Type | Type | Type |
28 | -> String -> Type | Type | Type | Type | 28 | -> String -> Type | Type | Type | Type |
29 | gadt04.reject.lc 2:6-3:33 | 29 | 2:6-3:33 |
30 | Type | 30 | Type |
31 | gadt04.reject.lc 2:11-2:15 | 31 | 2:11-2:15 |
32 | Type | 32 | Type |
33 | gadt04.reject.lc 2:19-2:25 | 33 | 2:19-2:25 |
34 | Type | 34 | Type |
35 | gadt04.reject.lc 2:19-2:33 | 35 | 2:19-2:33 |
36 | Type | 36 | Type |
37 | gadt04.reject.lc 2:29-2:33 | 37 | 2:29-2:33 |
38 | Type | Type | 38 | Type | Type |
39 | gadt04.reject.lc 3:3-3:8 | 39 | 3:3-3:8 |
40 | forall a . a -> forall (b :: String) . M a b | M _c _a | 40 | forall a . a -> forall (b :: String) . M a b | M _c _a |
41 | gadt04.reject.lc 3:3-3:33 | 41 | 3:3-3:33 |
42 | Type | Type | Type | Type | 42 | Type | Type | Type | Type |
43 | gadt04.reject.lc 3:12-3:13 | 43 | 3:12-3:13 |
44 | _b | 44 | _b |
45 | gadt04.reject.lc 3:12-3:33 | 45 | 3:12-3:33 |
46 | Type | 46 | Type |
47 | gadt04.reject.lc 3:17-3:33 | 47 | 3:17-3:33 |
48 | Type | 48 | Type |
49 | gadt04.reject.lc 3:28-3:29 | 49 | 3:28-3:29 |
50 | Type -> String -> Type | 50 | Type -> String -> Type |
51 | gadt04.reject.lc 3:28-3:31 | 51 | 3:28-3:31 |
52 | String -> Type | 52 | String -> Type |
53 | gadt04.reject.lc 3:28-3:33 | 53 | 3:28-3:33 |
54 | Type | Type | 54 | Type | Type |
55 | gadt04.reject.lc 3:30-3:31 | 55 | 3:30-3:31 |
56 | Type | Type | 56 | Type | Type |
57 | gadt04.reject.lc 3:30-3:33 | 57 | 3:30-3:33 |
58 | M _c _a -> Type | 58 | M _c _a -> Type |
59 | gadt04.reject.lc 3:32-3:33 | 59 | 3:32-3:33 |
60 | _b | String | 60 | _b | String |
61 | gadt04.reject.lc 5:6-5:8 | 61 | 5:6-5:8 |
62 | Type -> String -> Type | 62 | Type -> String -> Type |
63 | gadt04.reject.lc 5:12-5:16 | 63 | 5:12-5:16 |
64 | Type | 64 | Type |
65 | gadt04.reject.lc 5:20-5:26 | 65 | 5:20-5:26 |
66 | Type | 66 | Type |
67 | gadt04.reject.lc 5:20-5:34 | 67 | 5:20-5:34 |
68 | Type | 68 | Type |
69 | gadt04.reject.lc 5:30-5:34 | 69 | 5:30-5:34 |
70 | Type | Type | 70 | Type | Type |
71 | gadt04.reject.lc 6:12-6:13 | 71 | 6:12-6:13 |
72 | _b | 72 | _b |
73 | gadt04.reject.lc 6:12-6:34 | 73 | 6:12-6:34 |
74 | Type | 74 | Type |
75 | gadt04.reject.lc 6:17-6:34 | 75 | 6:17-6:34 |
76 | Type | 76 | Type |
77 | gadt04.reject.lc 6:28-6:30 | 77 | 6:28-6:30 |
78 | Type -> String -> Type | 78 | Type -> String -> Type |
79 | gadt04.reject.lc 6:28-6:32 | 79 | 6:28-6:32 |
80 | String -> Type | 80 | String -> Type |
81 | gadt04.reject.lc 6:28-6:34 | 81 | 6:28-6:34 |
82 | Type | Type | 82 | Type | Type |
83 | gadt04.reject.lc 6:31-6:32 | 83 | 6:31-6:32 |
84 | Type | 84 | Type |
85 | gadt04.reject.lc 6:33-6:34 | 85 | 6:33-6:34 |
86 | _b \ No newline at end of file | 86 | _b \ No newline at end of file |