Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion flix.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ authors = ["Matthew Lutze", "Jonathan Starup"]

[dependencies]
"github:JonathanStarup/Flix-ANSI-Terminal" = "1.8.0"
"github:mlutze/flix-json" = "0.12.19"
"github:mlutze/flix-json" = "0.13.1"
"github:flix/chalk" = "1.1.0"
2 changes: 1 addition & 1 deletion src/Config.flix
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ mod Flixball.Config {
}

def asArray(path: String, json: JsonElement): Result[String, List[JsonElement]] = match json {
case JsonArray(a) => Ok(a)
case JsonArray(a) => Ok(a |> Vector.toList)
case _ => Err("non-array at ${path}")
}

Expand Down
2 changes: 1 addition & 1 deletion src/Display.flix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ mod Flixball.Display {

def mkIdColorMap(_b: Board): Int32 -> String -> String =
// all the ANSI colors
id -> s -> unsafe Environment.handle(match (Int32.modulo(id, 12)) {
id -> s -> unsafe Env.handle(match (Int32.modulo(id, 12)) {
case 0 => Chalk.magenta
case 1 => Chalk.red
case 2 => Chalk.yellow
Expand Down
4 changes: 2 additions & 2 deletions src/Main.flix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod Flixball.Main {

pub def main(): Unit \ IO = {
run {
let args = Environment.getArgs();
let args = Env.getArgs();
match parse(args) {
case Action.Version => println(version())
case Action.Help => println(usage())
Expand All @@ -30,7 +30,7 @@ mod Flixball.Main {
case Action.Replay(_, _) => println("Replay not implemented")
case Action.Error => println(usage())
}
} with Environment.runWithIO
} with Env.runWithIO
with FileReadWithResult.runWithIO
}

Expand Down
Loading