Skip to content

Commit f699cef

Browse files
committed
Update version
1 parent 78980c3 commit f699cef

File tree

12 files changed

+608
-531
lines changed

12 files changed

+608
-531
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: erlef/setup-beam@v1
1616
with:
1717
otp-version: "26.0.2"
18-
gleam-version: "0.32.0-rc2"
18+
gleam-version: "0.33.0-rc3"
1919
- uses: actions/[email protected]
2020
with:
2121
node-version: "16.18.1"

src/gleam/dynamic.gleam

Lines changed: 63 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,12 +1166,14 @@ pub fn decode4(
11661166
case t1(x), t2(x), t3(x), t4(x) {
11671167
Ok(a), Ok(b), Ok(c), Ok(d) -> Ok(constructor(a, b, c, d))
11681168
a, b, c, d ->
1169-
Error(list.concat([
1170-
all_errors(a),
1171-
all_errors(b),
1172-
all_errors(c),
1173-
all_errors(d),
1174-
]))
1169+
Error(
1170+
list.concat([
1171+
all_errors(a),
1172+
all_errors(b),
1173+
all_errors(c),
1174+
all_errors(d),
1175+
]),
1176+
)
11751177
}
11761178
}
11771179
}
@@ -1221,13 +1223,15 @@ pub fn decode5(
12211223
case t1(x), t2(x), t3(x), t4(x), t5(x) {
12221224
Ok(a), Ok(b), Ok(c), Ok(d), Ok(e) -> Ok(constructor(a, b, c, d, e))
12231225
a, b, c, d, e ->
1224-
Error(list.concat([
1225-
all_errors(a),
1226-
all_errors(b),
1227-
all_errors(c),
1228-
all_errors(d),
1229-
all_errors(e),
1230-
]))
1226+
Error(
1227+
list.concat([
1228+
all_errors(a),
1229+
all_errors(b),
1230+
all_errors(c),
1231+
all_errors(d),
1232+
all_errors(e),
1233+
]),
1234+
)
12311235
}
12321236
}
12331237
}
@@ -1281,14 +1285,16 @@ pub fn decode6(
12811285
Ok(a), Ok(b), Ok(c), Ok(d), Ok(e), Ok(f) ->
12821286
Ok(constructor(a, b, c, d, e, f))
12831287
a, b, c, d, e, f ->
1284-
Error(list.concat([
1285-
all_errors(a),
1286-
all_errors(b),
1287-
all_errors(c),
1288-
all_errors(d),
1289-
all_errors(e),
1290-
all_errors(f),
1291-
]))
1288+
Error(
1289+
list.concat([
1290+
all_errors(a),
1291+
all_errors(b),
1292+
all_errors(c),
1293+
all_errors(d),
1294+
all_errors(e),
1295+
all_errors(f),
1296+
]),
1297+
)
12921298
}
12931299
}
12941300
}
@@ -1345,15 +1351,17 @@ pub fn decode7(
13451351
Ok(a), Ok(b), Ok(c), Ok(d), Ok(e), Ok(f), Ok(g) ->
13461352
Ok(constructor(a, b, c, d, e, f, g))
13471353
a, b, c, d, e, f, g ->
1348-
Error(list.concat([
1349-
all_errors(a),
1350-
all_errors(b),
1351-
all_errors(c),
1352-
all_errors(d),
1353-
all_errors(e),
1354-
all_errors(f),
1355-
all_errors(g),
1356-
]))
1354+
Error(
1355+
list.concat([
1356+
all_errors(a),
1357+
all_errors(b),
1358+
all_errors(c),
1359+
all_errors(d),
1360+
all_errors(e),
1361+
all_errors(f),
1362+
all_errors(g),
1363+
]),
1364+
)
13571365
}
13581366
}
13591367
}
@@ -1413,16 +1421,18 @@ pub fn decode8(
14131421
Ok(a), Ok(b), Ok(c), Ok(d), Ok(e), Ok(f), Ok(g), Ok(h) ->
14141422
Ok(constructor(a, b, c, d, e, f, g, h))
14151423
a, b, c, d, e, f, g, h ->
1416-
Error(list.concat([
1417-
all_errors(a),
1418-
all_errors(b),
1419-
all_errors(c),
1420-
all_errors(d),
1421-
all_errors(e),
1422-
all_errors(f),
1423-
all_errors(g),
1424-
all_errors(h),
1425-
]))
1424+
Error(
1425+
list.concat([
1426+
all_errors(a),
1427+
all_errors(b),
1428+
all_errors(c),
1429+
all_errors(d),
1430+
all_errors(e),
1431+
all_errors(f),
1432+
all_errors(g),
1433+
all_errors(h),
1434+
]),
1435+
)
14261436
}
14271437
}
14281438
}
@@ -1485,17 +1495,19 @@ pub fn decode9(
14851495
Ok(a), Ok(b), Ok(c), Ok(d), Ok(e), Ok(f), Ok(g), Ok(h), Ok(i) ->
14861496
Ok(constructor(a, b, c, d, e, f, g, h, i))
14871497
a, b, c, d, e, f, g, h, i ->
1488-
Error(list.concat([
1489-
all_errors(a),
1490-
all_errors(b),
1491-
all_errors(c),
1492-
all_errors(d),
1493-
all_errors(e),
1494-
all_errors(f),
1495-
all_errors(g),
1496-
all_errors(h),
1497-
all_errors(i),
1498-
]))
1498+
Error(
1499+
list.concat([
1500+
all_errors(a),
1501+
all_errors(b),
1502+
all_errors(c),
1503+
all_errors(d),
1504+
all_errors(e),
1505+
all_errors(f),
1506+
all_errors(g),
1507+
all_errors(h),
1508+
all_errors(i),
1509+
]),
1510+
)
14991511
}
15001512
}
15011513
}

src/gleam/iterator.gleam

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -621,26 +621,20 @@ pub fn range(from start: Int, to stop: Int) -> Iterator(Int) {
621621
case int.compare(start, stop) {
622622
order.Eq -> once(fn() { start })
623623
order.Gt ->
624-
unfold(
625-
from: start,
626-
with: fn(current) {
627-
case current < stop {
628-
False -> Next(current, current - 1)
629-
True -> Done
630-
}
631-
},
632-
)
624+
unfold(from: start, with: fn(current) {
625+
case current < stop {
626+
False -> Next(current, current - 1)
627+
True -> Done
628+
}
629+
})
633630

634631
order.Lt ->
635-
unfold(
636-
from: start,
637-
with: fn(current) {
638-
case current > stop {
639-
False -> Next(current, current + 1)
640-
True -> Done
641-
}
642-
},
643-
)
632+
unfold(from: start, with: fn(current) {
633+
case current > stop {
634+
False -> Next(current, current + 1)
635+
True -> Done
636+
}
637+
})
644638
}
645639
}
646640

src/gleam/set.gleam

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,9 @@ pub fn to_list(set: Set(member)) -> List(member) {
146146
///
147147
pub fn from_list(members: List(member)) -> Set(member) {
148148
let map =
149-
list.fold(
150-
over: members,
151-
from: dict.new(),
152-
with: fn(m, k) { dict.insert(m, k, token) },
153-
)
149+
list.fold(over: members, from: dict.new(), with: fn(m, k) {
150+
dict.insert(m, k, token)
151+
})
154152
Set(map)
155153
}
156154

0 commit comments

Comments
 (0)