Skip to content

Commit 4015f22

Browse files
committed
Fix some tests
1 parent e996f5d commit 4015f22

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

effekt/js/src/main/scala/effekt/EffektConfig.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ trait EffektConfig {
2020
def prelude(): List[String] = List(
2121
"effekt",
2222
"option",
23+
"stream",
2324
"list",
2425
"result",
2526
"exception",
2627
"array",
2728
"char",
29+
"bytearray",
2830
"string",
2931
"ref"
3032
)

examples/stdlib/bytearray/bytearray.effekt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import bytearray
21

32
def main() = {
43

examples/stdlib/stream/fibonacci.effekt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import stream
21

32
def main() = {
43
val max = 10
54

6-
val fibs = collectList[Int] {
5+
val fibs = list::collect[Int] {
76
var a = 0
87
var b = 1
98

libraries/common/json.effekt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def build[R](){ body: => R / JsonBuilder }: (R, JsonValue) = {
277277
}
278278
(x, r)
279279
}
280-
def buildList[R](){ body: => R / JsonBuilder }: (R, List[JsonValue]) = returning::collectList[JsonValue, R] {
280+
def buildList[R](){ body: => R / JsonBuilder }: (R, List[JsonValue]) = returning::collect[JsonValue, R] {
281281
try body() with JsonBuilder {
282282
def number(n) = { do emit(Number(n)); resume(()) }
283283
def bool(b) = { do emit(Bool(b)); resume(()) }
@@ -295,7 +295,7 @@ def buildList[R](){ body: => R / JsonBuilder }: (R, List[JsonValue]) = returning
295295
}
296296
}
297297
}
298-
def buildDict[R](){ body: => R / JsonObjectBuilder }: (R, List[(String, JsonValue)]) = returning::collectList[(String, JsonValue), R] {
298+
def buildDict[R](){ body: => R / JsonObjectBuilder }: (R, List[(String, JsonValue)]) = returning::collect[(String, JsonValue), R] {
299299
try body() with JsonObjectBuilder {
300300
def field(k) = resume { {v} =>
301301
val x = build{v}

libraries/common/random.effekt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module random
22

33
import stream
4-
ipmort io/filesystem
4+
import io/filesystem
55
import io/error
66

77
/// Infinite pull stream of random bytes.

0 commit comments

Comments
 (0)