From 80722c4cb64cc7ac5067d23220a9ffc25364548f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 27 Sep 2026 15:25:47 +0000 Subject: [PATCH 1/6] Update Roc nightly pin to nightly-2026-09-27-a3ce7f1 --- .roc-version | 2 +- examples/CommandLineArgsFile/main.roc | 2 +- examples/Commands/main.roc | 2 +- examples/ErrorHandlingRealWorld/main.roc | 2 +- examples/ImportPackageFromModule/main.roc | 2 +- examples/LoopEffect/main.roc | 2 +- examples/Parser/main.roc | 2 +- examples/RandomNumbers/main.roc | 2 +- examples/Snake/main.roc | 2 +- examples/SortStrings/main.roc | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.roc-version b/.roc-version index 3d3c749..ede85fb 100644 --- a/.roc-version +++ b/.roc-version @@ -1 +1 @@ -nightly-2026-09-19-d025939 +nightly-2026-09-27-a3ce7f1 diff --git a/examples/CommandLineArgsFile/main.roc b/examples/CommandLineArgsFile/main.roc index 0ae2a54..e4dedba 100644 --- a/examples/CommandLineArgsFile/main.roc +++ b/examples/CommandLineArgsFile/main.roc @@ -1,7 +1,7 @@ # Run with `roc ./examples/CommandLineArgsFile/main.roc -- examples/CommandLineArgsFile/input.txt` app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", - roc: "nightly-2026-09-19-d025939", + roc: "nightly-2026-09-27-a3ce7f1", } import cli.Stdout diff --git a/examples/Commands/main.roc b/examples/Commands/main.roc index 1d1028c..fb4633c 100644 --- a/examples/Commands/main.roc +++ b/examples/Commands/main.roc @@ -1,6 +1,6 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", - roc: "nightly-2026-09-19-d025939", + roc: "nightly-2026-09-27-a3ce7f1", } import cli.Stdout diff --git a/examples/ErrorHandlingRealWorld/main.roc b/examples/ErrorHandlingRealWorld/main.roc index 83abf95..4058202 100644 --- a/examples/ErrorHandlingRealWorld/main.roc +++ b/examples/ErrorHandlingRealWorld/main.roc @@ -1,6 +1,6 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", - roc: "nightly-2026-09-19-d025939", + roc: "nightly-2026-09-27-a3ce7f1", } import cli.Stdout diff --git a/examples/ImportPackageFromModule/main.roc b/examples/ImportPackageFromModule/main.roc index bfded02..40f00a8 100644 --- a/examples/ImportPackageFromModule/main.roc +++ b/examples/ImportPackageFromModule/main.roc @@ -2,7 +2,7 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", unicode: "https://github.com/roc-lang/unicode/releases/download/2.0.0/9ZvqNzsNkpqFmGTeATAY3BNBD7mP41jqZx2w2N19tBvh.tar.zst", - roc: "nightly-2026-09-19-d025939", + roc: "nightly-2026-09-27-a3ce7f1", } ### end snippet header diff --git a/examples/LoopEffect/main.roc b/examples/LoopEffect/main.roc index ba5db5a..ffc38a1 100644 --- a/examples/LoopEffect/main.roc +++ b/examples/LoopEffect/main.roc @@ -1,6 +1,6 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", - roc: "nightly-2026-09-19-d025939", + roc: "nightly-2026-09-27-a3ce7f1", } import cli.Stdin diff --git a/examples/Parser/main.roc b/examples/Parser/main.roc index 58b5093..350362c 100644 --- a/examples/Parser/main.roc +++ b/examples/Parser/main.roc @@ -1,7 +1,7 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/1.0.2/FrnJ4RGDKpQyoDyESNoBwFNviY4ZGbMVLnUjW9tvSRjk.tar.zst", - roc: "nightly-2026-09-19-d025939", + roc: "nightly-2026-09-27-a3ce7f1", } import cli.Stdout diff --git a/examples/RandomNumbers/main.roc b/examples/RandomNumbers/main.roc index 0b7185e..70c8684 100644 --- a/examples/RandomNumbers/main.roc +++ b/examples/RandomNumbers/main.roc @@ -1,7 +1,7 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", rand: "https://github.com/kili-ilo/roc-random/releases/download/0.9.2/2ZXLX8WRqrosGu1V3VL5aXqgtfTRvJmjFPx8a26ecVmc.tar.zst", - roc: "nightly-2026-09-19-d025939", + roc: "nightly-2026-09-27-a3ce7f1", } import cli.Stdout diff --git a/examples/Snake/main.roc b/examples/Snake/main.roc index 6f1656c..2ba9243 100644 --- a/examples/Snake/main.roc +++ b/examples/Snake/main.roc @@ -1,6 +1,6 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", - roc: "nightly-2026-09-19-d025939", + roc: "nightly-2026-09-27-a3ce7f1", } import cli.Stdin diff --git a/examples/SortStrings/main.roc b/examples/SortStrings/main.roc index a8418a9..cb620f2 100644 --- a/examples/SortStrings/main.roc +++ b/examples/SortStrings/main.roc @@ -1,7 +1,7 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", ascii: "https://github.com/Hasnep/roc-ascii/releases/download/v0.3.1/1PCTQ0tzSijxfhxDg1k_yPtfOXiAk3j283b8EWGusVc.tar.br", - roc: "nightly-2026-09-19-d025939", + roc: "nightly-2026-09-27-a3ce7f1", } import cli.Stdout From 011d28594fa4c8648c854f8d97e2cc3d7d3dfb99 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Mon, 28 Sep 2026 16:39:25 +0200 Subject: [PATCH 2/6] basic-cli update 0.23.0 Co-Authored-By: Claude Opus 5.5 (1M context) --- examples/CommandLineArgsFile/main.roc | 2 +- examples/Commands/main.roc | 2 +- examples/ErrorHandlingRealWorld/main.roc | 2 +- examples/ImportPackageFromModule/main.roc | 2 +- examples/LoopEffect/main.roc | 2 +- examples/Parser/main.roc | 2 +- examples/RandomNumbers/main.roc | 2 +- examples/Snake/main.roc | 2 +- examples/SortStrings/main.roc | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/CommandLineArgsFile/main.roc b/examples/CommandLineArgsFile/main.roc index e4dedba..082486b 100644 --- a/examples/CommandLineArgsFile/main.roc +++ b/examples/CommandLineArgsFile/main.roc @@ -1,6 +1,6 @@ # Run with `roc ./examples/CommandLineArgsFile/main.roc -- examples/CommandLineArgsFile/input.txt` app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", roc: "nightly-2026-09-27-a3ce7f1", } diff --git a/examples/Commands/main.roc b/examples/Commands/main.roc index fb4633c..bc021c0 100644 --- a/examples/Commands/main.roc +++ b/examples/Commands/main.roc @@ -1,5 +1,5 @@ app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", roc: "nightly-2026-09-27-a3ce7f1", } diff --git a/examples/ErrorHandlingRealWorld/main.roc b/examples/ErrorHandlingRealWorld/main.roc index 4058202..9b9b638 100644 --- a/examples/ErrorHandlingRealWorld/main.roc +++ b/examples/ErrorHandlingRealWorld/main.roc @@ -1,5 +1,5 @@ app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", roc: "nightly-2026-09-27-a3ce7f1", } diff --git a/examples/ImportPackageFromModule/main.roc b/examples/ImportPackageFromModule/main.roc index 40f00a8..74e447d 100644 --- a/examples/ImportPackageFromModule/main.roc +++ b/examples/ImportPackageFromModule/main.roc @@ -1,6 +1,6 @@ ### start snippet header app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", unicode: "https://github.com/roc-lang/unicode/releases/download/2.0.0/9ZvqNzsNkpqFmGTeATAY3BNBD7mP41jqZx2w2N19tBvh.tar.zst", roc: "nightly-2026-09-27-a3ce7f1", } diff --git a/examples/LoopEffect/main.roc b/examples/LoopEffect/main.roc index ffc38a1..57a970e 100644 --- a/examples/LoopEffect/main.roc +++ b/examples/LoopEffect/main.roc @@ -1,5 +1,5 @@ app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", roc: "nightly-2026-09-27-a3ce7f1", } diff --git a/examples/Parser/main.roc b/examples/Parser/main.roc index 350362c..a1286e2 100644 --- a/examples/Parser/main.roc +++ b/examples/Parser/main.roc @@ -1,5 +1,5 @@ app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/1.0.2/FrnJ4RGDKpQyoDyESNoBwFNviY4ZGbMVLnUjW9tvSRjk.tar.zst", roc: "nightly-2026-09-27-a3ce7f1", } diff --git a/examples/RandomNumbers/main.roc b/examples/RandomNumbers/main.roc index 70c8684..fc7e5d2 100644 --- a/examples/RandomNumbers/main.roc +++ b/examples/RandomNumbers/main.roc @@ -1,5 +1,5 @@ app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", rand: "https://github.com/kili-ilo/roc-random/releases/download/0.9.2/2ZXLX8WRqrosGu1V3VL5aXqgtfTRvJmjFPx8a26ecVmc.tar.zst", roc: "nightly-2026-09-27-a3ce7f1", } diff --git a/examples/Snake/main.roc b/examples/Snake/main.roc index 2ba9243..eacdd06 100644 --- a/examples/Snake/main.roc +++ b/examples/Snake/main.roc @@ -1,5 +1,5 @@ app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", roc: "nightly-2026-09-27-a3ce7f1", } diff --git a/examples/SortStrings/main.roc b/examples/SortStrings/main.roc index cb620f2..e6da72b 100644 --- a/examples/SortStrings/main.roc +++ b/examples/SortStrings/main.roc @@ -1,5 +1,5 @@ app [main!] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.22.2/9zUBxb1LtXYVc4eR4hAtd1WQDwBYDhM6HQdZz1UFCm2m.tar.zst", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", ascii: "https://github.com/Hasnep/roc-ascii/releases/download/v0.3.1/1PCTQ0tzSijxfhxDg1k_yPtfOXiAk3j283b8EWGusVc.tar.br", roc: "nightly-2026-09-27-a3ce7f1", } From 73574edf7a74a439875d49d07061ccade4d2c22d Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Mon, 28 Sep 2026 19:43:10 +0200 Subject: [PATCH 3/6] update to basic-cli 0.23 --- ci_scripts/expect_scripts/EncodeDecode.exp | 2 +- .../expect_scripts/ErrorHandlingRealWorld.exp | 19 +++++++++++++++---- .../ImportPackageFromModule.exp | 2 +- examples/CommandLineArgsFile/main.roc | 3 +-- examples/CustomInspect/OpaqueTypes.roc | 1 + examples/EncodeDecode/main.roc | 2 +- .../ErrorHandlingBasic/ErrorHandlingBasic.roc | 2 +- examples/ErrorHandlingRealWorld/main.roc | 2 +- examples/ImportPackageFromModule/main.roc | 2 +- examples/LoopEffect/main.roc | 2 +- examples/Parser/main.roc | 2 +- examples/RandomNumbers/main.roc | 2 +- examples/SafeMath/main.roc | 2 +- examples/TryOperatorDesugaring/main.roc | 4 ++-- 14 files changed, 29 insertions(+), 18 deletions(-) diff --git a/ci_scripts/expect_scripts/EncodeDecode.exp b/ci_scripts/expect_scripts/EncodeDecode.exp index a29093f..5057a0d 100644 --- a/ci_scripts/expect_scripts/EncodeDecode.exp +++ b/ci_scripts/expect_scripts/EncodeDecode.exp @@ -9,7 +9,7 @@ source ./ci_scripts/expect_scripts/shared-code.exp spawn ./examples/EncodeDecode/main -expect "ItemKind.(Text)\r\nItemKind.(Method)\r\nItemKind.(Function)\r\nItemKind.(Constructor)\r\nItemKind.(Field)\r\nItemKind.(Variable)\r\nItemKind.(Class)\r\nItemKind.(Interface)\r\nItemKind.(Module)\r\nItemKind.(Property)\r\n" { +expect "Text\r\nMethod\r\nFunction\r\nConstructor\r\nField\r\nVariable\r\nClass\r\nInterface\r\nModule\r\nProperty\r\n" { expect eof { check_exit_and_segfault } diff --git a/ci_scripts/expect_scripts/ErrorHandlingRealWorld.exp b/ci_scripts/expect_scripts/ErrorHandlingRealWorld.exp index 80322a2..19003b8 100644 --- a/ci_scripts/expect_scripts/ErrorHandlingRealWorld.exp +++ b/ci_scripts/expect_scripts/ErrorHandlingRealWorld.exp @@ -3,7 +3,8 @@ # uncomment line below for debugging # exp_internal 1 -set timeout 7 +# Generous timeout: this example does a real HTTP request +set timeout 30 source ./ci_scripts/expect_scripts/shared-code.exp @@ -11,9 +12,19 @@ set env(HELLO) 1 spawn ./examples/ErrorHandlingRealWorld/main "https://www.roc-lang.org" roc.html -expect "Done\r\n" { - expect eof { - check_exit_and_segfault +expect { + "Done\r\n" { + expect eof { + check_exit_and_segfault + } + } + timeout { + puts stderr "\nError: timed out after $timeout seconds waiting for \"Done\"." + exit 1 + } + eof { + puts stderr "\nError: program exited before printing \"Done\". wait status: [wait]" + exit 1 } } diff --git a/ci_scripts/expect_scripts/ImportPackageFromModule.exp b/ci_scripts/expect_scripts/ImportPackageFromModule.exp index 82de1c0..1c835ea 100644 --- a/ci_scripts/expect_scripts/ImportPackageFromModule.exp +++ b/ci_scripts/expect_scripts/ImportPackageFromModule.exp @@ -10,7 +10,7 @@ source ./ci_scripts/expect_scripts/shared-code.exp spawn ./examples/ImportPackageFromModule/main expect { - -re {Ok\(\["h", "e", "l", "l", "o"\]\)\r\n} { + -re {\["h", "e", "l", "l", "o"\]\r\n} { expect eof { check_exit_and_segfault } diff --git a/examples/CommandLineArgsFile/main.roc b/examples/CommandLineArgsFile/main.roc index 082486b..459cca0 100644 --- a/examples/CommandLineArgsFile/main.roc +++ b/examples/CommandLineArgsFile/main.roc @@ -10,8 +10,7 @@ import cli.File import cli.Path run! = |args| { - # get the second argument, the first is the executable's path - first_arg = List.get(args, 1) ? |_| ZeroArgsGiven + first_arg = List.get(args, 0) ? |_| ZeroArgsGiven reader = File.open_reader!(Path.from_os_str(first_arg)) ? |err| FileReadFailed(first_arg, err) file_first_line_utf8 = reader.read_line!() ? |err| FileReadFailed(first_arg, err) diff --git a/examples/CustomInspect/OpaqueTypes.roc b/examples/CustomInspect/OpaqueTypes.roc index 624f4d1..2566845 100644 --- a/examples/CustomInspect/OpaqueTypes.roc +++ b/examples/CustomInspect/OpaqueTypes.roc @@ -30,6 +30,7 @@ main! = |_| { ### start snippet secret CreditCard :: Str.{ create = |nb| CreditCard.(nb) + to_inspect : CreditCard -> Str to_inspect = |CreditCard.(nb)| { last_four_digits = nb.to_utf8().take_last(4) |> Str.from_utf8 ?? "****" # Note: do not use this default in production. If your credit card string cannot be converted to utf8 you should fail loudly. "**** **** **** ${last_four_digits}" diff --git a/examples/EncodeDecode/main.roc b/examples/EncodeDecode/main.roc index 0b4eca2..c856c13 100644 --- a/examples/EncodeDecode/main.roc +++ b/examples/EncodeDecode/main.roc @@ -39,7 +39,7 @@ ItemKind := [ } } - parser_for : encoding -> (state -> Try({ value : ItemKind, rest : state }, [TooShort, InvalidJson(Str), ..])) + parser_for : encoding -> (state -> Try({ value : ItemKind, rest : state }, [TooShort, InvalidJson(Str)])) where [ encoding.parse_u32 : encoding, state -> Try({ value : U32, rest : state }, [InvalidJson(Str)]), ] diff --git a/examples/ErrorHandlingBasic/ErrorHandlingBasic.roc b/examples/ErrorHandlingBasic/ErrorHandlingBasic.roc index efef33a..cf4cd22 100644 --- a/examples/ErrorHandlingBasic/ErrorHandlingBasic.roc +++ b/examples/ErrorHandlingBasic/ErrorHandlingBasic.roc @@ -1,6 +1,6 @@ Person : { first_name : Str, last_name : Str, birth_year : U16 } -parse_person : Str -> Try(Person, [InvalidSentenceFormat(Str), InvalidNameFormat(Str), InvalidBirthYearFormat(Str), ..]) +parse_person : Str -> Try(Person, [InvalidSentenceFormat(Str), InvalidNameFormat(Str), InvalidBirthYearFormat(Str)]) parse_person = |line| { { before: full_name, after: birth_year_str } = # The NotFound error is not very informative, so we discard it with `_` and provide our own. diff --git a/examples/ErrorHandlingRealWorld/main.roc b/examples/ErrorHandlingRealWorld/main.roc index 9b9b638..ae372f3 100644 --- a/examples/ErrorHandlingRealWorld/main.roc +++ b/examples/ErrorHandlingRealWorld/main.roc @@ -52,7 +52,7 @@ run! = |args| { parse_args! = |args| { match args { - [_, first_arg, second_arg, ..] => { + [first_arg, second_arg, ..] => { url = OsStr.display(first_arg) Ok({ url, output_path: Path.from_os_str(second_arg) }) } diff --git a/examples/ImportPackageFromModule/main.roc b/examples/ImportPackageFromModule/main.roc index 74e447d..668752e 100644 --- a/examples/ImportPackageFromModule/main.roc +++ b/examples/ImportPackageFromModule/main.roc @@ -1,7 +1,7 @@ ### start snippet header app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", - unicode: "https://github.com/roc-lang/unicode/releases/download/2.0.0/9ZvqNzsNkpqFmGTeATAY3BNBD7mP41jqZx2w2N19tBvh.tar.zst", + unicode: "https://github.com/roc-lang/unicode/releases/download/4.2.0/4W8SHzvwet9hH9qZewJ1J1CVQoH7YKA6zyijWFTB3y1w.tar.zst", roc: "nightly-2026-09-27-a3ce7f1", } diff --git a/examples/LoopEffect/main.roc b/examples/LoopEffect/main.roc index 57a970e..c7f3983 100644 --- a/examples/LoopEffect/main.roc +++ b/examples/LoopEffect/main.roc @@ -30,7 +30,7 @@ run! = || { Stdout.line!("Sum: ${sum.to_str()}") } -main! : List(OsStr) => Try({}, [Exit(I32), ..]) +main! : List(OsStr) => Try({}, [Exit(I32)]) main! = |_args| { match run!() { Ok({}) => Ok({}) diff --git a/examples/Parser/main.roc b/examples/Parser/main.roc index a1286e2..c40f554 100644 --- a/examples/Parser/main.roc +++ b/examples/Parser/main.roc @@ -12,7 +12,7 @@ import parser.String exposing [parse_str, codeunit, any_codeunit] default_input_str = "ABRACADABRA" -main! : List(OsStr) => Try({}, [Exit(I32), ..]) +main! : List(OsStr) => Try({}, [Exit(I32)]) main! = |args| { input_str = args.map(OsStr.display).get(1) ?? default_input_str diff --git a/examples/RandomNumbers/main.roc b/examples/RandomNumbers/main.roc index fc7e5d2..e21bc6b 100644 --- a/examples/RandomNumbers/main.roc +++ b/examples/RandomNumbers/main.roc @@ -8,7 +8,7 @@ import cli.Stdout import cli.OsStr import rand.Random -main! : List(OsStr) => Try({}, [Exit(I32), ..]) +main! : List(OsStr) => Try({}, [Exit(I32)]) main! = |_args| { # Print a list of 10 random numbers. diff --git a/examples/SafeMath/main.roc b/examples/SafeMath/main.roc index 859e58d..e73789d 100644 --- a/examples/SafeMath/main.roc +++ b/examples/SafeMath/main.roc @@ -65,7 +65,7 @@ expect safe_variance([4, 22, 99, 204, 18, 20]) == Ok(5032.138888888888888888) expect safe_variance([46, 69, 32, 60, 52, 41]) == Ok(147.666666666666666666) # The following function should soon be available in the Roc builtins -times_try : Dec, Dec -> Try(Dec, [Overflow, ..]) +times_try : Dec, Dec -> Try(Dec, [Overflow]) times_try = |a, b| { result = a.times_saturated(b) if result == Dec.lowest or result == Dec.highest { diff --git a/examples/TryOperatorDesugaring/main.roc b/examples/TryOperatorDesugaring/main.roc index 9d4e680..42347d0 100644 --- a/examples/TryOperatorDesugaring/main.roc +++ b/examples/TryOperatorDesugaring/main.roc @@ -5,7 +5,7 @@ main! = |_| { } ### start snippet question -parse_name_and_year : Str -> Try({ name : Str, birth_year : U16 }, [BadFormat, BadNumStr, ..]) +parse_name_and_year : Str -> Try({ name : Str, birth_year : U16 }, [BadFormat, BadNumStr]) parse_name_and_year = |str| { { before: name, after: birth_year_str } = str.split_first(" was born in ") ? |_| BadFormat birth_year = U16.from_str(birth_year_str)? @@ -15,7 +15,7 @@ parse_name_and_year = |str| { ### end snippet question ### start snippet desugared -parse_name_and_year_try : Str -> Try({ name : Str, birth_year : U16 }, [BadFormat, BadNumStr, ..]) +parse_name_and_year_try : Str -> Try({ name : Str, birth_year : U16 }, [BadFormat, BadNumStr]) parse_name_and_year_try = |str| { match str.split_first(" was born in ") { Err(_) => Err(BadFormat) From 8df9823b7b92f58732edcca8b2015ad7867cc616 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Mon, 28 Sep 2026 21:22:36 +0200 Subject: [PATCH 4/6] fix formatting --- examples/AllSyntax/main.roc | 2 +- examples/CommandLineArgsFile/main.roc | 2 +- examples/Commands/main.roc | 2 +- examples/ErrorHandlingRealWorld/main.roc | 2 +- examples/HelloWeb/main.roc | 6 +++--- examples/ImportPackageFromModule/main.roc | 2 +- examples/Json/main.roc | 2 +- examples/LoopEffect/main.roc | 2 +- examples/Parser/main.roc | 2 +- examples/RandomNumbers/main.roc | 3 +-- examples/Snake/main.roc | 2 +- 11 files changed, 13 insertions(+), 14 deletions(-) diff --git a/examples/AllSyntax/main.roc b/examples/AllSyntax/main.roc index 54230eb..2938da5 100644 --- a/examples/AllSyntax/main.roc +++ b/examples/AllSyntax/main.roc @@ -79,7 +79,7 @@ match_tag_union_advanced = |try| Err(_) => "Unknown error" - } + } multiline_str : U64 -> Str multiline_str = |number| diff --git a/examples/CommandLineArgsFile/main.roc b/examples/CommandLineArgsFile/main.roc index 459cca0..cc2de9e 100644 --- a/examples/CommandLineArgsFile/main.roc +++ b/examples/CommandLineArgsFile/main.roc @@ -1,7 +1,7 @@ # Run with `roc ./examples/CommandLineArgsFile/main.roc -- examples/CommandLineArgsFile/input.txt` app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", - roc: "nightly-2026-09-27-a3ce7f1", + roc: "nightly-2026-09-28-9927ba8", } import cli.Stdout diff --git a/examples/Commands/main.roc b/examples/Commands/main.roc index bc021c0..c6a5889 100644 --- a/examples/Commands/main.roc +++ b/examples/Commands/main.roc @@ -1,6 +1,6 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", - roc: "nightly-2026-09-27-a3ce7f1", + roc: "nightly-2026-09-28-9927ba8", } import cli.Stdout diff --git a/examples/ErrorHandlingRealWorld/main.roc b/examples/ErrorHandlingRealWorld/main.roc index ae372f3..0b01930 100644 --- a/examples/ErrorHandlingRealWorld/main.roc +++ b/examples/ErrorHandlingRealWorld/main.roc @@ -1,6 +1,6 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", - roc: "nightly-2026-09-27-a3ce7f1", + roc: "nightly-2026-09-28-9927ba8", } import cli.Stdout diff --git a/examples/HelloWeb/main.roc b/examples/HelloWeb/main.roc index 909b87b..60b7794 100644 --- a/examples/HelloWeb/main.roc +++ b/examples/HelloWeb/main.roc @@ -14,10 +14,10 @@ program = { init!, respond!, shutdown! } # generate css by running `tailwindcss`... # In this case we don't have anything to initialize, so we use the default # config. -init! : () => Try({ config : Server.Config, context : Context }, [Exit(I64), ..]) +init! : () => Try({ config : Server.Config, context : Context }, [Exit(I64)]) init! = || Ok({ config: Server.default_config, context: {} }) -respond! : Server.Request, Context => Try(Server.Outcome, [ServerErr(Str), ..]) +respond! : Server.Request, Context => Try(Server.Outcome, [ServerErr(Str)]) respond! = |_request, _context| Ok( Server.respond( @@ -27,5 +27,5 @@ respond! = |_request, _context| ), ) -shutdown! : Server.ShutdownReason, Context => Try({}, [Exit(I64), ..]) +shutdown! : Server.ShutdownReason, Context => Try({}, [Exit(I64)]) shutdown! = |_reason, _context| Ok({}) diff --git a/examples/ImportPackageFromModule/main.roc b/examples/ImportPackageFromModule/main.roc index 668752e..938ca3c 100644 --- a/examples/ImportPackageFromModule/main.roc +++ b/examples/ImportPackageFromModule/main.roc @@ -2,7 +2,7 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", unicode: "https://github.com/roc-lang/unicode/releases/download/4.2.0/4W8SHzvwet9hH9qZewJ1J1CVQoH7YKA6zyijWFTB3y1w.tar.zst", - roc: "nightly-2026-09-27-a3ce7f1", + roc: "nightly-2026-09-28-9927ba8", } ### end snippet header diff --git a/examples/Json/main.roc b/examples/Json/main.roc index 5ca1fab..6cc0e55 100644 --- a/examples/Json/main.roc +++ b/examples/Json/main.roc @@ -31,7 +31,7 @@ main! = |args| { \\ "width": 800 \\ } \\} - } + } decoded : Try(ImageRequest, _) decoded = Json.parse(input_str) diff --git a/examples/LoopEffect/main.roc b/examples/LoopEffect/main.roc index c7f3983..6455141 100644 --- a/examples/LoopEffect/main.roc +++ b/examples/LoopEffect/main.roc @@ -1,6 +1,6 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", - roc: "nightly-2026-09-27-a3ce7f1", + roc: "nightly-2026-09-28-9927ba8", } import cli.Stdin diff --git a/examples/Parser/main.roc b/examples/Parser/main.roc index c40f554..c5ae2cb 100644 --- a/examples/Parser/main.roc +++ b/examples/Parser/main.roc @@ -1,7 +1,7 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/1.0.2/FrnJ4RGDKpQyoDyESNoBwFNviY4ZGbMVLnUjW9tvSRjk.tar.zst", - roc: "nightly-2026-09-27-a3ce7f1", + roc: "nightly-2026-09-28-9927ba8", } import cli.Stdout diff --git a/examples/RandomNumbers/main.roc b/examples/RandomNumbers/main.roc index e21bc6b..64c4c52 100644 --- a/examples/RandomNumbers/main.roc +++ b/examples/RandomNumbers/main.roc @@ -1,7 +1,7 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", rand: "https://github.com/kili-ilo/roc-random/releases/download/0.9.2/2ZXLX8WRqrosGu1V3VL5aXqgtfTRvJmjFPx8a26ecVmc.tar.zst", - roc: "nightly-2026-09-27-a3ce7f1", + roc: "nightly-2026-09-28-9927ba8", } import cli.Stdout @@ -10,7 +10,6 @@ import rand.Random main! : List(OsStr) => Try({}, [Exit(I32)]) main! = |_args| { - # Print a list of 10 random numbers. numbers_str = random_numbers diff --git a/examples/Snake/main.roc b/examples/Snake/main.roc index eacdd06..000ed85 100644 --- a/examples/Snake/main.roc +++ b/examples/Snake/main.roc @@ -1,6 +1,6 @@ app [main!] { cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.23.0/GNN5tt2gKdX4dhawg4915C4YB193woHFdcCkz31fhGxv.tar.zst", - roc: "nightly-2026-09-27-a3ce7f1", + roc: "nightly-2026-09-28-9927ba8", } import cli.Stdin From 7ee69251d66591d357ed7f17d350f0f6d237f504 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Mon, 28 Sep 2026 21:28:35 +0200 Subject: [PATCH 5/6] update .roc-version --- .roc-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.roc-version b/.roc-version index ede85fb..1943c53 100644 --- a/.roc-version +++ b/.roc-version @@ -1 +1 @@ -nightly-2026-09-27-a3ce7f1 +nightly-2026-09-28-9927ba8 \ No newline at end of file From c70760d31fdd9dbd5916647978dd71270ebd4ab3 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 29 Sep 2026 15:05:31 +0200 Subject: [PATCH 6/6] revert expect change --- ci_scripts/expect_scripts/EncodeDecode.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci_scripts/expect_scripts/EncodeDecode.exp b/ci_scripts/expect_scripts/EncodeDecode.exp index 5057a0d..a29093f 100644 --- a/ci_scripts/expect_scripts/EncodeDecode.exp +++ b/ci_scripts/expect_scripts/EncodeDecode.exp @@ -9,7 +9,7 @@ source ./ci_scripts/expect_scripts/shared-code.exp spawn ./examples/EncodeDecode/main -expect "Text\r\nMethod\r\nFunction\r\nConstructor\r\nField\r\nVariable\r\nClass\r\nInterface\r\nModule\r\nProperty\r\n" { +expect "ItemKind.(Text)\r\nItemKind.(Method)\r\nItemKind.(Function)\r\nItemKind.(Constructor)\r\nItemKind.(Field)\r\nItemKind.(Variable)\r\nItemKind.(Class)\r\nItemKind.(Interface)\r\nItemKind.(Module)\r\nItemKind.(Property)\r\n" { expect eof { check_exit_and_segfault }