Skip to content

Commit 4859e8f

Browse files
committed
Fix typo in type_synomym
1 parent 45f72d2 commit 4859e8f

File tree

9 files changed

+105
-105
lines changed

9 files changed

+105
-105
lines changed

grammar/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module.exports = {
127127
*/
128128
declaration: $ => choice(
129129
$.decl,
130-
$.type_synomym,
130+
$.type_synonym,
131131
$.kind_signature,
132132
$.type_family,
133133
$.type_instance,

grammar/type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ module.exports = {
357357
// type decl
358358
// ------------------------------------------------------------------------
359359

360-
type_synomym: $ => seq(
360+
type_synonym: $ => seq(
361361
'type',
362362
$._type_head,
363363
'=',

src/grammar.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@
17711771
}
17721772
]
17731773
},
1774-
"type_synomym": {
1774+
"type_synonym": {
17751775
"type": "SEQ",
17761776
"members": [
17771777
{
@@ -6638,7 +6638,7 @@
66386638
},
66396639
{
66406640
"type": "SYMBOL",
6641-
"name": "type_synomym"
6641+
"name": "type_synonym"
66426642
},
66436643
{
66446644
"type": "SYMBOL",

src/node-types.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
"named": true
229229
},
230230
{
231-
"type": "type_synomym",
231+
"type": "type_synonym",
232232
"named": true
233233
}
234234
]
@@ -5756,7 +5756,7 @@
57565756
"fields": {}
57575757
},
57585758
{
5759-
"type": "type_synomym",
5759+
"type": "type_synonym",
57605760
"named": true,
57615761
"fields": {
57625762
"name": {

test/corpus/context.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ type A = A a => A
182182

183183
(haskell
184184
(declarations
185-
(type_synomym
185+
(type_synonym
186186
(name)
187187
(context
188188
(apply
@@ -200,7 +200,7 @@ type A = (a A) a => A
200200

201201
(haskell
202202
(declarations
203-
(type_synomym
203+
(type_synonym
204204
(name)
205205
(context
206206
(apply
@@ -221,7 +221,7 @@ type A = (A :: A a -> A) a => A
221221

222222
(haskell
223223
(declarations
224-
(type_synomym
224+
(type_synonym
225225
(name)
226226
(context
227227
(apply
@@ -246,7 +246,7 @@ type A = A a => ∀ a . a *+* a => A
246246

247247
(haskell
248248
(declarations
249-
(type_synomym
249+
(type_synonym
250250
(name)
251251
(context
252252
(apply
@@ -272,7 +272,7 @@ type A = (A => a a) -> A
272272

273273
(haskell
274274
(declarations
275-
(type_synomym
275+
(type_synonym
276276
(name)
277277
(function
278278
(parens

test/corpus/implicit.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type A = ?a :: A
88

99
(haskell
1010
(declarations
11-
(type_synomym
11+
(type_synonym
1212
(name)
1313
(implicit_parameter
1414
(implicit_variable)
@@ -24,7 +24,7 @@ type A = (?a :: A)
2424

2525
(haskell
2626
(declarations
27-
(type_synomym
27+
(type_synonym
2828
(name)
2929
(parens
3030
(implicit_parameter
@@ -41,7 +41,7 @@ type A = (?a :: Int :: Constraint)
4141

4242
(haskell
4343
(declarations
44-
(type_synomym
44+
(type_synonym
4545
(name)
4646
(parens
4747
(signature
@@ -60,7 +60,7 @@ type A = (A => ?a :: A)
6060

6161
(haskell
6262
(declarations
63-
(type_synomym
63+
(type_synonym
6464
(name)
6565
(parens
6666
(context
@@ -79,7 +79,7 @@ type A = (?a :: A.A, A)
7979

8080
(haskell
8181
(declarations
82-
(type_synomym
82+
(type_synonym
8383
(name)
8484
(tuple
8585
(implicit_parameter
@@ -100,7 +100,7 @@ type A = (?a :: A.A, A)
100100

101101
(haskell
102102
(declarations
103-
(type_synomym
103+
(type_synonym
104104
(name)
105105
(tuple
106106
(implicit_parameter
@@ -121,7 +121,7 @@ type A = (?a :: A) => A
121121

122122
(haskell
123123
(declarations
124-
(type_synomym
124+
(type_synonym
125125
(name)
126126
(context
127127
(parens
@@ -140,7 +140,7 @@ type A = ?a :: ∀ a . A a => A
140140

141141
(haskell
142142
(declarations
143-
(type_synomym
143+
(type_synonym
144144
(name)
145145
(implicit_parameter
146146
(implicit_variable)

test/corpus/prec.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,17 +1187,17 @@ type (#?) = (#?)
11871187

11881188
(haskell
11891189
(declarations
1190-
(type_synomym
1190+
(type_synonym
11911191
(prefix_id
11921192
(operator))
11931193
(prefix_id
11941194
(operator)))
1195-
(type_synomym
1195+
(type_synonym
11961196
(prefix_id
11971197
(operator))
11981198
(prefix_id
11991199
(operator)))
1200-
(type_synomym
1200+
(type_synonym
12011201
(prefix_id
12021202
(operator))
12031203
(prefix_id
@@ -1218,15 +1218,15 @@ type A = (# a | a # b | c #)
12181218

12191219
(haskell
12201220
(declarations
1221-
(type_synomym
1221+
(type_synonym
12221222
(name)
12231223
(unboxed_tuple
12241224
(infix
12251225
(variable)
12261226
(operator)
12271227
(variable))
12281228
(variable)))
1229-
(type_synomym
1229+
(type_synonym
12301230
(name)
12311231
(unboxed_tuple
12321232
(variable)
@@ -1235,28 +1235,28 @@ type A = (# a | a # b | c #)
12351235
(operator)
12361236
(variable))
12371237
(variable)))
1238-
(type_synomym
1238+
(type_synonym
12391239
(name)
12401240
(unboxed_tuple
12411241
(variable)
12421242
(infix
12431243
(variable)
12441244
(operator)
12451245
(variable))))
1246-
(type_synomym
1246+
(type_synonym
12471247
(name)
12481248
(unboxed_sum
12491249
(name)
12501250
(name)))
1251-
(type_synomym
1251+
(type_synonym
12521252
(name)
12531253
(unboxed_sum
12541254
(infix
12551255
(variable)
12561256
(operator)
12571257
(variable))
12581258
(variable)))
1259-
(type_synomym
1259+
(type_synonym
12601260
(name)
12611261
(unboxed_sum
12621262
(variable)
@@ -1676,7 +1676,7 @@ type A = A.A.A A.A.A A.A.+++ A.A.A A.A.A A.A.+++ A.A.A A.A.A
16761676

16771677
(haskell
16781678
(declarations
1679-
(type_synomym
1679+
(type_synonym
16801680
(name)
16811681
(infix
16821682
(apply

0 commit comments

Comments
 (0)