diff --git a/config/generator_macros.j2 b/config/generator_macros.j2 index 1d9b779..3c98228 100644 --- a/config/generator_macros.j2 +++ b/config/generator_macros.j2 @@ -18,17 +18,17 @@ {% macro header(imports=[], ignore=[]) -%} app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br" + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br" {%- if imports -%} {%- for name in imports -%}, {% if name == "unicode" -%} - unicode: "https://github.com/roc-lang/unicode/releases/download/0.1.2/vH5iqn04ShmqP-pNemgF773f86COePSqMWHzVGrAKNo.tar.br" + unicode: "https://github.com/roc-lang/unicode/releases/download/0.2.0/odvSckHK9LxWLbsrPmo2s6aQ3bn7C3PALyv0ZI1gAu0.tar.br" {%- elif name == "isodate" -%} - isodate: "https://github.com/imclerran/roc-isodate/releases/download/v0.5.1/XHx5wx95nuICKpN8sxMwYnCme5oX_YFbJUL1s6D1feU.tar.br" + isodate: "https://github.com/Anton-4/roc-isodate/releases/download/0.6.0/_n7UX8f5aFVVIXNa2AtOCvd-dcU-n-fp-0o8d22fyuQ.tar.br" {%- elif name == "json" -%} - json: "https://github.com/lukewilliamboswell/roc-json/releases/download/0.10.2/FH4N0Sw-JSFXJfG3j54VEDPtXOoN-6I9v_IA8S18IGk.tar.br" + json: "https://github.com/lukewilliamboswell/roc-json/releases/download/0.11.0/z45Wzc-J39TLNweQUoLw3IGZtkQiEN3lTBv3BXErRjQ.tar.br" {%- elif name == "parser" -%} - parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.7.2/1usTzOOACTpnkarBX0ED3gFESzR4ROdAlt1Llf4WFzo.tar.br" + parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.9.0/w8YKp2YAgQt5REYk912HfKAHBjcXsrnvtjI0CBzoAT4.tar.br" {%- endif -%} {%- endfor -%} {%- endif %} diff --git a/docs/SNIPPET.txt b/docs/SNIPPET.txt index 0f3b084..ad8014a 100644 --- a/docs/SNIPPET.txt +++ b/docs/SNIPPET.txt @@ -1,4 +1,4 @@ -app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br" } +app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br" } import pf.Stdout factorial = \number -> diff --git a/exercises/practice/accumulate/accumulate-test.roc b/exercises/practice/accumulate/accumulate-test.roc index a02ec8e..73ac680 100644 --- a/exercises/practice/accumulate/accumulate-test.roc +++ b/exercises/practice/accumulate/accumulate-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/accumulate/canonical-data.json # File last updated on 2024-09-15 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/acronym/acronym-test.roc b/exercises/practice/acronym/acronym-test.roc index c6f8c71..c3b42b2 100644 --- a/exercises/practice/acronym/acronym-test.roc +++ b/exercises/practice/acronym/acronym-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/acronym/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/affine-cipher/affine-cipher-test.roc b/exercises/practice/affine-cipher/affine-cipher-test.roc index 8cebcf8..bb469e4 100644 --- a/exercises/practice/affine-cipher/affine-cipher-test.roc +++ b/exercises/practice/affine-cipher/affine-cipher-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/affine-cipher/canonical-data.json # File last updated on 2024-10-23 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/all-your-base/all-your-base-test.roc b/exercises/practice/all-your-base/all-your-base-test.roc index 8967e25..be50dd3 100644 --- a/exercises/practice/all-your-base/all-your-base-test.roc +++ b/exercises/practice/all-your-base/all-your-base-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/all-your-base/canonical-data.json # File last updated on 2024-09-03 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/allergies/allergies-test.roc b/exercises/practice/allergies/allergies-test.roc index 14f3dc7..997e8ea 100644 --- a/exercises/practice/allergies/allergies-test.roc +++ b/exercises/practice/allergies/allergies-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/allergies/canonical-data.json # File last updated on 2024-09-21 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/alphametics/.meta/Example.roc b/exercises/practice/alphametics/.meta/Example.roc index 848718c..4691f0b 100644 --- a/exercises/practice/alphametics/.meta/Example.roc +++ b/exercises/practice/alphametics/.meta/Example.roc @@ -72,6 +72,6 @@ parse : Str -> Result { addends : List (List U8), sum : List U8 } _ parse = \problem -> { before, after } = Str.splitFirst? problem " == " addends = - Str.split before " + " + Str.splitOn before " + " |> List.map Str.toUtf8 Ok { addends, sum: Str.toUtf8 after } diff --git a/exercises/practice/alphametics/alphametics-test.roc b/exercises/practice/alphametics/alphametics-test.roc index fc58380..ca2ef8a 100644 --- a/exercises/practice/alphametics/alphametics-test.roc +++ b/exercises/practice/alphametics/alphametics-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/alphametics/canonical-data.json # File last updated on 2024-09-22 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/anagram/anagram-test.roc b/exercises/practice/anagram/anagram-test.roc index d78329d..7024d7d 100644 --- a/exercises/practice/anagram/anagram-test.roc +++ b/exercises/practice/anagram/anagram-test.roc @@ -2,8 +2,8 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/anagram/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", - unicode: "https://github.com/roc-lang/unicode/releases/download/0.1.2/vH5iqn04ShmqP-pNemgF773f86COePSqMWHzVGrAKNo.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", + unicode: "https://github.com/roc-lang/unicode/releases/download/0.2.0/odvSckHK9LxWLbsrPmo2s6aQ3bn7C3PALyv0ZI1gAu0.tar.br", } main = diff --git a/exercises/practice/armstrong-numbers/armstrong-numbers-test.roc b/exercises/practice/armstrong-numbers/armstrong-numbers-test.roc index b438da9..c6ba59a 100644 --- a/exercises/practice/armstrong-numbers/armstrong-numbers-test.roc +++ b/exercises/practice/armstrong-numbers/armstrong-numbers-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/armstrong-numbers/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/atbash-cipher/atbash-cipher-test.roc b/exercises/practice/atbash-cipher/atbash-cipher-test.roc index 436535d..2985e15 100644 --- a/exercises/practice/atbash-cipher/atbash-cipher-test.roc +++ b/exercises/practice/atbash-cipher/atbash-cipher-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/atbash-cipher/canonical-data.json # File last updated on 2024-10-10 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/binary-search-tree/binary-search-tree-test.roc b/exercises/practice/binary-search-tree/binary-search-tree-test.roc index fed2b2a..c2f8ba1 100644 --- a/exercises/practice/binary-search-tree/binary-search-tree-test.roc +++ b/exercises/practice/binary-search-tree/binary-search-tree-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/binary-search-tree/canonical-data.json # File last updated on 2024-10-21 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/binary-search/binary-search-test.roc b/exercises/practice/binary-search/binary-search-test.roc index b8bb946..40fbcde 100644 --- a/exercises/practice/binary-search/binary-search-test.roc +++ b/exercises/practice/binary-search/binary-search-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/binary-search/canonical-data.json # File last updated on 2024-09-03 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/binary/binary-test.roc b/exercises/practice/binary/binary-test.roc index 4902d79..2ada5c7 100644 --- a/exercises/practice/binary/binary-test.roc +++ b/exercises/practice/binary/binary-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/binary/canonical-data.json # File last updated on 2024-09-24 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/bob/bob-test.roc b/exercises/practice/bob/bob-test.roc index 3b3e580..74aaad1 100644 --- a/exercises/practice/bob/bob-test.roc +++ b/exercises/practice/bob/bob-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/bob/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/bowling/bowling-test.roc b/exercises/practice/bowling/bowling-test.roc index 896d285..9afa258 100644 --- a/exercises/practice/bowling/bowling-test.roc +++ b/exercises/practice/bowling/bowling-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/bowling/canonical-data.json # File last updated on 2024-09-23 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/change/change-test.roc b/exercises/practice/change/change-test.roc index 6cbaaac..6fd8178 100644 --- a/exercises/practice/change/change-test.roc +++ b/exercises/practice/change/change-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/change/canonical-data.json # File last updated on 2024-10-08 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/circular-buffer/circular-buffer-test.roc b/exercises/practice/circular-buffer/circular-buffer-test.roc index 38f6713..44d40c3 100644 --- a/exercises/practice/circular-buffer/circular-buffer-test.roc +++ b/exercises/practice/circular-buffer/circular-buffer-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/circular-buffer/canonical-data.json # File last updated on 2024-09-15 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/clock/clock-test.roc b/exercises/practice/clock/clock-test.roc index 71d91a1..2a63588 100644 --- a/exercises/practice/clock/clock-test.roc +++ b/exercises/practice/clock/clock-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/clock/canonical-data.json # File last updated on 2024-10-13 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/collatz-conjecture/collatz-conjecture-test.roc b/exercises/practice/collatz-conjecture/collatz-conjecture-test.roc index e7f0f4f..ee2816c 100644 --- a/exercises/practice/collatz-conjecture/collatz-conjecture-test.roc +++ b/exercises/practice/collatz-conjecture/collatz-conjecture-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/collatz-conjecture/canonical-data.json # File last updated on 2024-09-03 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/complex-numbers/complex-numbers-test.roc b/exercises/practice/complex-numbers/complex-numbers-test.roc index 0da4409..2255415 100644 --- a/exercises/practice/complex-numbers/complex-numbers-test.roc +++ b/exercises/practice/complex-numbers/complex-numbers-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/complex-numbers/canonical-data.json # File last updated on 2024-09-21 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/connect/.meta/Example.roc b/exercises/practice/connect/.meta/Example.roc index 7f3ee84..ff8074c 100644 --- a/exercises/practice/connect/.meta/Example.roc +++ b/exercises/practice/connect/.meta/Example.roc @@ -9,10 +9,10 @@ parse : Str -> Result Board [InvalidCharacter U8] parse = \boardStr -> boardStr |> Str.trim - |> Str.split "\n" + |> Str.toUtf8 + |> List.splitOn '\n' |> List.mapTry \row -> row - |> Str.toUtf8 |> List.dropIf \char -> char == ' ' |> List.mapTry \char -> when char is @@ -99,4 +99,3 @@ hasNorthSouthPath = \board, stone -> Empty -> Err NotPlayerStone |> List.keepOks \id -> id hasPathToSouth northStones (Set.empty {}) - diff --git a/exercises/practice/connect/connect-test.roc b/exercises/practice/connect/connect-test.roc index becca7e..11067ad 100644 --- a/exercises/practice/connect/connect-test.roc +++ b/exercises/practice/connect/connect-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/connect/canonical-data.json # File last updated on 2024-09-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/crypto-square/crypto-square-test.roc b/exercises/practice/crypto-square/crypto-square-test.roc index 63a8437..d0b0f1d 100644 --- a/exercises/practice/crypto-square/crypto-square-test.roc +++ b/exercises/practice/crypto-square/crypto-square-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/crypto-square/canonical-data.json # File last updated on 2024-10-10 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/custom-set/custom-set-test.roc b/exercises/practice/custom-set/custom-set-test.roc index 8872ae3..31ed393 100644 --- a/exercises/practice/custom-set/custom-set-test.roc +++ b/exercises/practice/custom-set/custom-set-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/custom-set/canonical-data.json # File last updated on 2024-10-11 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/darts/darts-test.roc b/exercises/practice/darts/darts-test.roc index 8c9ea4c..ab14dbd 100644 --- a/exercises/practice/darts/darts-test.roc +++ b/exercises/practice/darts/darts-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/darts/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/diamond/diamond-test.roc b/exercises/practice/diamond/diamond-test.roc index 14a3177..40ee350 100644 --- a/exercises/practice/diamond/diamond-test.roc +++ b/exercises/practice/diamond/diamond-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/diamond/canonical-data.json # File last updated on 2024-09-04 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/difference-of-squares/difference-of-squares-test.roc b/exercises/practice/difference-of-squares/difference-of-squares-test.roc index 2c2912b..9e2267d 100644 --- a/exercises/practice/difference-of-squares/difference-of-squares-test.roc +++ b/exercises/practice/difference-of-squares/difference-of-squares-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/difference-of-squares/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/dominoes/dominoes-test.roc b/exercises/practice/dominoes/dominoes-test.roc index d608692..9333bf3 100644 --- a/exercises/practice/dominoes/dominoes-test.roc +++ b/exercises/practice/dominoes/dominoes-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/dominoes/canonical-data.json # File last updated on 2024-09-21 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/eliuds-eggs/eliuds-eggs-test.roc b/exercises/practice/eliuds-eggs/eliuds-eggs-test.roc index bd8f35b..894dab9 100644 --- a/exercises/practice/eliuds-eggs/eliuds-eggs-test.roc +++ b/exercises/practice/eliuds-eggs/eliuds-eggs-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/eliuds-eggs/canonical-data.json # File last updated on 2024-09-04 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/error-handling/error-handling-test.roc b/exercises/practice/error-handling/error-handling-test.roc index 5cec776..118315e 100644 --- a/exercises/practice/error-handling/error-handling-test.roc +++ b/exercises/practice/error-handling/error-handling-test.roc @@ -1,6 +1,6 @@ # File last updated on 2024-09-12 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/etl/etl-test.roc b/exercises/practice/etl/etl-test.roc index 21e8a5c..110ee8d 100644 --- a/exercises/practice/etl/etl-test.roc +++ b/exercises/practice/etl/etl-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/etl/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/flatten-array/flatten-array-test.roc b/exercises/practice/flatten-array/flatten-array-test.roc index 0a2dc5c..7fb5aae 100644 --- a/exercises/practice/flatten-array/flatten-array-test.roc +++ b/exercises/practice/flatten-array/flatten-array-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/flatten-array/canonical-data.json # File last updated on 2024-08-28 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/food-chain/food-chain-test.roc b/exercises/practice/food-chain/food-chain-test.roc index 4074867..795d292 100644 --- a/exercises/practice/food-chain/food-chain-test.roc +++ b/exercises/practice/food-chain/food-chain-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/food-chain/canonical-data.json # File last updated on 2024-09-22 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/forth/.meta/Example.roc b/exercises/practice/forth/.meta/Example.roc index e077e87..1b9d89a 100644 --- a/exercises/practice/forth/.meta/Example.roc +++ b/exercises/practice/forth/.meta/Example.roc @@ -102,11 +102,11 @@ step = \stack, op -> # Parsing parse : Str -> Result (List Op) _ parse = \str -> - when Str.split (Str.trim str) "\n" is + when Str.splitOn (Str.trim str) "\n" is [.. as defLines, program] -> defs = parseDefs? defLines - Str.split program " " + Str.splitOn program " " |> flattenDefs defs |> List.mapTry toOp @@ -115,7 +115,7 @@ parse = \str -> parseDefs : List Str -> Result Defs _ parseDefs = \lines -> List.walkTry lines (Dict.empty {}) \defs, line -> - when Str.split line " " is + when Str.splitOn line " " is [":", name, .. as tokens, ";"] -> ops = parseDef? tokens defs Dict.insert defs name ops |> Ok diff --git a/exercises/practice/forth/forth-test.roc b/exercises/practice/forth/forth-test.roc index a34205e..771cbc6 100644 --- a/exercises/practice/forth/forth-test.roc +++ b/exercises/practice/forth/forth-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/forth/canonical-data.json # File last updated on 2024-09-07 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/gigasecond/gigasecond-test.roc b/exercises/practice/gigasecond/gigasecond-test.roc index 21d3822..d117c92 100644 --- a/exercises/practice/gigasecond/gigasecond-test.roc +++ b/exercises/practice/gigasecond/gigasecond-test.roc @@ -2,8 +2,8 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/gigasecond/canonical-data.json # File last updated on 2024-10-18 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", - isodate: "https://github.com/imclerran/roc-isodate/releases/download/v0.5.1/XHx5wx95nuICKpN8sxMwYnCme5oX_YFbJUL1s6D1feU.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", + isodate: "https://github.com/Anton-4/roc-isodate/releases/download/0.6.0/_n7UX8f5aFVVIXNa2AtOCvd-dcU-n-fp-0o8d22fyuQ.tar.br", } main = diff --git a/exercises/practice/go-counting/.meta/Example.roc b/exercises/practice/go-counting/.meta/Example.roc index 8dbd12e..870d42b 100644 --- a/exercises/practice/go-counting/.meta/Example.roc +++ b/exercises/practice/go-counting/.meta/Example.roc @@ -29,10 +29,10 @@ parse = \boardStr -> rows = boardStr - |> Str.split "\n" + |> Str.toUtf8 + |> List.splitOn '\n' |> List.mapTry? \row -> row - |> Str.toUtf8 |> List.mapTry \char -> when char is 'B' -> Ok Black @@ -125,4 +125,3 @@ territories = \boardStr -> White -> { black: state.black, white: state.white |> Set.union newTerritory.territory, none: state.none } None -> { black: state.black, white: state.white, none: state.none |> Set.union newTerritory.territory } |> Ok - diff --git a/exercises/practice/go-counting/go-counting-test.roc b/exercises/practice/go-counting/go-counting-test.roc index c994772..59affeb 100644 --- a/exercises/practice/go-counting/go-counting-test.roc +++ b/exercises/practice/go-counting/go-counting-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/go-counting/canonical-data.json # File last updated on 2024-10-07 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/grains/grains-test.roc b/exercises/practice/grains/grains-test.roc index 9fb25a9..c569bf1 100644 --- a/exercises/practice/grains/grains-test.roc +++ b/exercises/practice/grains/grains-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/grains/canonical-data.json # File last updated on 2024-09-03 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/grep/.meta/Example.roc b/exercises/practice/grep/.meta/Example.roc index b262736..795485b 100644 --- a/exercises/practice/grep/.meta/Example.roc +++ b/exercises/practice/grep/.meta/Example.roc @@ -31,7 +31,7 @@ grep = \pattern, flags, fileNames -> findMatches : Config, Str, Str -> List { line : Str, index : U64 } findMatches = \config, pattern, text -> - Str.split text "\n" + Str.splitOn text "\n" |> List.mapWithIndex \line, index -> { line, index } |> List.keepIf \{ line } -> diff --git a/exercises/practice/grep/grep-test.roc b/exercises/practice/grep/grep-test.roc index f15c753..efe73ce 100644 --- a/exercises/practice/grep/grep-test.roc +++ b/exercises/practice/grep/grep-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/grep/canonical-data.json # File last updated on 2024-09-15 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/hamming/hamming-test.roc b/exercises/practice/hamming/hamming-test.roc index 9f37eaf..1655baf 100644 --- a/exercises/practice/hamming/hamming-test.roc +++ b/exercises/practice/hamming/hamming-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/hamming/canonical-data.json # File last updated on 2024-09-03 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/hello-world/hello-world-test.roc b/exercises/practice/hello-world/hello-world-test.roc index c903588..a6d0b49 100644 --- a/exercises/practice/hello-world/hello-world-test.roc +++ b/exercises/practice/hello-world/hello-world-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/hello-world/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/hexadecimal/hexadecimal-test.roc b/exercises/practice/hexadecimal/hexadecimal-test.roc index 0befe8c..a5a0854 100644 --- a/exercises/practice/hexadecimal/hexadecimal-test.roc +++ b/exercises/practice/hexadecimal/hexadecimal-test.roc @@ -1,5 +1,5 @@ app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/high-scores/high-scores-test.roc b/exercises/practice/high-scores/high-scores-test.roc index 3c7d8d5..f8952bd 100644 --- a/exercises/practice/high-scores/high-scores-test.roc +++ b/exercises/practice/high-scores/high-scores-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/high-scores/canonical-data.json # File last updated on 2024-10-06 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/house/house-test.roc b/exercises/practice/house/house-test.roc index 625be44..42ba4cf 100644 --- a/exercises/practice/house/house-test.roc +++ b/exercises/practice/house/house-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/house/canonical-data.json # File last updated on 2024-08-28 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/isbn-verifier/isbn-verifier-test.roc b/exercises/practice/isbn-verifier/isbn-verifier-test.roc index 14a70fd..6c24126 100644 --- a/exercises/practice/isbn-verifier/isbn-verifier-test.roc +++ b/exercises/practice/isbn-verifier/isbn-verifier-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/isbn-verifier/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/isogram/isogram-test.roc b/exercises/practice/isogram/isogram-test.roc index cb4e9df..0d1c350 100644 --- a/exercises/practice/isogram/isogram-test.roc +++ b/exercises/practice/isogram/isogram-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/isogram/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/killer-sudoku-helper/killer-sudoku-helper-test.roc b/exercises/practice/killer-sudoku-helper/killer-sudoku-helper-test.roc index 6a757e6..9889f4f 100644 --- a/exercises/practice/killer-sudoku-helper/killer-sudoku-helper-test.roc +++ b/exercises/practice/killer-sudoku-helper/killer-sudoku-helper-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/killer-sudoku-helper/canonical-data.json # File last updated on 2024-09-28 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/kindergarten-garden/.meta/Example.roc b/exercises/practice/kindergarten-garden/.meta/Example.roc index 09d5c3f..018c241 100644 --- a/exercises/practice/kindergarten-garden/.meta/Example.roc +++ b/exercises/practice/kindergarten-garden/.meta/Example.roc @@ -22,12 +22,7 @@ studentIndex = \student -> plants : Str, Student -> Result (List Plant) _ plants = \diagram, student -> startIndex = 2 * studentIndex student - grid = - diagram - |> Str.trim - |> Str.split "\n" - |> List.map \row -> - row |> Str.trim |> Str.toUtf8 + grid = diagram |> Str.toUtf8 |> List.splitOn '\n' [(0, 0), (0, 1), (1, 0), (1, 1)] |> List.mapTry \(row, column) -> plant = grid |> List.get? row |> List.get? (startIndex + column) diff --git a/exercises/practice/kindergarten-garden/kindergarten-garden-test.roc b/exercises/practice/kindergarten-garden/kindergarten-garden-test.roc index 6451569..26a8f87 100644 --- a/exercises/practice/kindergarten-garden/kindergarten-garden-test.roc +++ b/exercises/practice/kindergarten-garden/kindergarten-garden-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/kindergarten-garden/canonical-data.json # File last updated on 2024-09-26 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/knapsack/knapsack-test.roc b/exercises/practice/knapsack/knapsack-test.roc index a85b7de..f2e11cd 100644 --- a/exercises/practice/knapsack/knapsack-test.roc +++ b/exercises/practice/knapsack/knapsack-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/knapsack/canonical-data.json # File last updated on 2024-10-06 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/largest-series-product/largest-series-product-test.roc b/exercises/practice/largest-series-product/largest-series-product-test.roc index 325b708..bafb5eb 100644 --- a/exercises/practice/largest-series-product/largest-series-product-test.roc +++ b/exercises/practice/largest-series-product/largest-series-product-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/largest-series-product/canonical-data.json # File last updated on 2024-10-13 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/leap/leap-test.roc b/exercises/practice/leap/leap-test.roc index cd632e2..8fa2c3a 100644 --- a/exercises/practice/leap/leap-test.roc +++ b/exercises/practice/leap/leap-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/leap/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/list-ops/list-ops-test.roc b/exercises/practice/list-ops/list-ops-test.roc index 6a14967..68904b7 100644 --- a/exercises/practice/list-ops/list-ops-test.roc +++ b/exercises/practice/list-ops/list-ops-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/list-ops/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/luhn/luhn-test.roc b/exercises/practice/luhn/luhn-test.roc index e441af4..50ab8b0 100644 --- a/exercises/practice/luhn/luhn-test.roc +++ b/exercises/practice/luhn/luhn-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/luhn/canonical-data.json # File last updated on 2024-08-29 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/matching-brackets/matching-brackets-test.roc b/exercises/practice/matching-brackets/matching-brackets-test.roc index 8aab9f5..540872b 100644 --- a/exercises/practice/matching-brackets/matching-brackets-test.roc +++ b/exercises/practice/matching-brackets/matching-brackets-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/matching-brackets/canonical-data.json # File last updated on 2024-09-16 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/matrix/.meta/Example.roc b/exercises/practice/matrix/.meta/Example.roc index f1410c1..dff0a27 100644 --- a/exercises/practice/matrix/.meta/Example.roc +++ b/exercises/practice/matrix/.meta/Example.roc @@ -4,7 +4,7 @@ parseRow : Str -> Result (List I64) [InvalidNumStr] parseRow = \rowStr -> rowStr |> Str.trim - |> Str.split " " + |> Str.splitOn " " |> List.map Str.trim |> List.dropIf Str.isEmpty |> List.mapTry Str.toI64 @@ -12,8 +12,7 @@ parseRow = \rowStr -> parseMatrix : Str -> Result (List (List I64)) [InvalidNumStr] parseMatrix = \matrixStr -> matrixStr - |> Str.trim - |> Str.split "\n" + |> Str.splitOn "\n" |> List.mapTry parseRow column : Str, U64 -> Result (List I64) [InvalidNumStr, OutOfBounds] diff --git a/exercises/practice/matrix/matrix-test.roc b/exercises/practice/matrix/matrix-test.roc index 0a98c6f..474943f 100644 --- a/exercises/practice/matrix/matrix-test.roc +++ b/exercises/practice/matrix/matrix-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/matrix/canonical-data.json # File last updated on 2024-09-20 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/meetup/meetup-test.roc b/exercises/practice/meetup/meetup-test.roc index 7a33f05..1e2999f 100644 --- a/exercises/practice/meetup/meetup-test.roc +++ b/exercises/practice/meetup/meetup-test.roc @@ -2,8 +2,8 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/meetup/canonical-data.json # File last updated on 2024-10-18 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", - isodate: "https://github.com/imclerran/roc-isodate/releases/download/v0.5.1/XHx5wx95nuICKpN8sxMwYnCme5oX_YFbJUL1s6D1feU.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", + isodate: "https://github.com/Anton-4/roc-isodate/releases/download/0.6.0/_n7UX8f5aFVVIXNa2AtOCvd-dcU-n-fp-0o8d22fyuQ.tar.br", } main = diff --git a/exercises/practice/micro-blog/micro-blog-test.roc b/exercises/practice/micro-blog/micro-blog-test.roc index 8fb8e06..d785302 100644 --- a/exercises/practice/micro-blog/micro-blog-test.roc +++ b/exercises/practice/micro-blog/micro-blog-test.roc @@ -2,8 +2,8 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/micro-blog/canonical-data.json # File last updated on 2024-09-22 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", - unicode: "https://github.com/roc-lang/unicode/releases/download/0.1.2/vH5iqn04ShmqP-pNemgF773f86COePSqMWHzVGrAKNo.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", + unicode: "https://github.com/roc-lang/unicode/releases/download/0.2.0/odvSckHK9LxWLbsrPmo2s6aQ3bn7C3PALyv0ZI1gAu0.tar.br", } main = diff --git a/exercises/practice/minesweeper/.meta/Example.roc b/exercises/practice/minesweeper/.meta/Example.roc index 793afb4..ac539b7 100644 --- a/exercises/practice/minesweeper/.meta/Example.roc +++ b/exercises/practice/minesweeper/.meta/Example.roc @@ -24,7 +24,7 @@ countNeighbors = \rows, x, y -> annotate : Str -> Str annotate = \minefield -> - rows = minefield |> Str.split "\n" |> List.map Str.toUtf8 + rows = minefield |> Str.toUtf8 |> List.splitOn '\n' annotated = rows |> List.mapWithIndex \row, y -> diff --git a/exercises/practice/minesweeper/minesweeper-test.roc b/exercises/practice/minesweeper/minesweeper-test.roc index 9ddad3a..4f900b2 100644 --- a/exercises/practice/minesweeper/minesweeper-test.roc +++ b/exercises/practice/minesweeper/minesweeper-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/minesweeper/canonical-data.json # File last updated on 2024-09-02 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/nth-prime/nth-prime-test.roc b/exercises/practice/nth-prime/nth-prime-test.roc index 6eb203a..41d84f1 100644 --- a/exercises/practice/nth-prime/nth-prime-test.roc +++ b/exercises/practice/nth-prime/nth-prime-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/nth-prime/canonical-data.json # File last updated on 2024-10-07 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/nucleotide-count/nucleotide-count-test.roc b/exercises/practice/nucleotide-count/nucleotide-count-test.roc index d9e1777..c23e890 100644 --- a/exercises/practice/nucleotide-count/nucleotide-count-test.roc +++ b/exercises/practice/nucleotide-count/nucleotide-count-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/nucleotide-count/canonical-data.json # File last updated on 2024-09-22 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/ocr-numbers/.meta/Example.roc b/exercises/practice/ocr-numbers/.meta/Example.roc index 1d2f432..1e1e2e2 100644 --- a/exercises/practice/ocr-numbers/.meta/Example.roc +++ b/exercises/practice/ocr-numbers/.meta/Example.roc @@ -8,7 +8,7 @@ convert = \grid -> Ok "" else - gridChars = grid |> Str.split "\n" |> List.map Str.toUtf8 + gridChars = grid |> Str.toUtf8 |> List.splitOn '\n' size = checkSize? gridChars gridChars |> List.chunksOf 4 # split vertically into groups of 4 rows diff --git a/exercises/practice/ocr-numbers/ocr-numbers-test.roc b/exercises/practice/ocr-numbers/ocr-numbers-test.roc index 0657f64..9417d58 100644 --- a/exercises/practice/ocr-numbers/ocr-numbers-test.roc +++ b/exercises/practice/ocr-numbers/ocr-numbers-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/ocr-numbers/canonical-data.json # File last updated on 2024-10-13 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/octal/octal-test.roc b/exercises/practice/octal/octal-test.roc index 628dc88..6dfed84 100644 --- a/exercises/practice/octal/octal-test.roc +++ b/exercises/practice/octal/octal-test.roc @@ -1,5 +1,5 @@ app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/palindrome-products/palindrome-products-test.roc b/exercises/practice/palindrome-products/palindrome-products-test.roc index 213fa3d..bfd582b 100644 --- a/exercises/practice/palindrome-products/palindrome-products-test.roc +++ b/exercises/practice/palindrome-products/palindrome-products-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/palindrome-products/canonical-data.json # File last updated on 2024-10-15 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/pangram/pangram-test.roc b/exercises/practice/pangram/pangram-test.roc index 6fbcde3..c72dc93 100644 --- a/exercises/practice/pangram/pangram-test.roc +++ b/exercises/practice/pangram/pangram-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/pangram/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = Task.ok {} diff --git a/exercises/practice/pascals-triangle/pascals-triangle-test.roc b/exercises/practice/pascals-triangle/pascals-triangle-test.roc index ebff054..3a2cfe5 100644 --- a/exercises/practice/pascals-triangle/pascals-triangle-test.roc +++ b/exercises/practice/pascals-triangle/pascals-triangle-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/pascals-triangle/canonical-data.json # File last updated on 2024-10-14 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/perfect-numbers/perfect-numbers-test.roc b/exercises/practice/perfect-numbers/perfect-numbers-test.roc index 8778253..715f50f 100644 --- a/exercises/practice/perfect-numbers/perfect-numbers-test.roc +++ b/exercises/practice/perfect-numbers/perfect-numbers-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/perfect-numbers/canonical-data.json # File last updated on 2024-09-03 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/phone-number/phone-number-test.roc b/exercises/practice/phone-number/phone-number-test.roc index 226bd11..15c5741 100644 --- a/exercises/practice/phone-number/phone-number-test.roc +++ b/exercises/practice/phone-number/phone-number-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/phone-number/canonical-data.json # File last updated on 2024-10-09 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/pig-latin/.meta/Example.roc b/exercises/practice/pig-latin/.meta/Example.roc index 2b1b266..ace01a6 100644 --- a/exercises/practice/pig-latin/.meta/Example.roc +++ b/exercises/practice/pig-latin/.meta/Example.roc @@ -22,7 +22,7 @@ pigLatinSwap = \chars -> (_, 'y') if index > 0 -> Break (0, index) # rule 4 (_, c) if isVowel c -> Break (0, index) # rule 2 _ -> Continue (char, index + 1) - { before, others } = chars |> List.split splitIndex + { before, others } = chars |> List.splitAt splitIndex others |> List.concat before translateWord : Str -> Str @@ -40,6 +40,6 @@ translateWord = \word -> translate : Str -> Str translate = \phrase -> phrase - |> Str.split " " + |> Str.splitOn " " |> List.map translateWord |> Str.joinWith " " diff --git a/exercises/practice/pig-latin/pig-latin-test.roc b/exercises/practice/pig-latin/pig-latin-test.roc index 7304061..ed480e4 100644 --- a/exercises/practice/pig-latin/pig-latin-test.roc +++ b/exercises/practice/pig-latin/pig-latin-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/pig-latin/canonical-data.json # File last updated on 2024-09-03 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/poker/.meta/Example.roc b/exercises/practice/poker/.meta/Example.roc index 80fc07e..53308f1 100644 --- a/exercises/practice/poker/.meta/Example.roc +++ b/exercises/practice/poker/.meta/Example.roc @@ -18,7 +18,7 @@ bestHands = \hands -> parseHand : Str -> Result Hand HandParsingError parseHand = \handStr -> - cards = handStr |> Str.split " " + cards = handStr |> Str.splitOn " " numCards = List.len cards if numCards != 5 then Err (InvalidNumberOfCards numCards) diff --git a/exercises/practice/poker/poker-test.roc b/exercises/practice/poker/poker-test.roc index 2be4a74..660744a 100644 --- a/exercises/practice/poker/poker-test.roc +++ b/exercises/practice/poker/poker-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/poker/canonical-data.json # File last updated on 2024-10-08 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/prime-factors/prime-factors-test.roc b/exercises/practice/prime-factors/prime-factors-test.roc index bc8db0c..e604e6a 100644 --- a/exercises/practice/prime-factors/prime-factors-test.roc +++ b/exercises/practice/prime-factors/prime-factors-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/prime-factors/canonical-data.json # File last updated on 2024-09-04 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/protein-translation/protein-translation-test.roc b/exercises/practice/protein-translation/protein-translation-test.roc index adc906f..dd7f1d9 100644 --- a/exercises/practice/protein-translation/protein-translation-test.roc +++ b/exercises/practice/protein-translation/protein-translation-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/protein-translation/canonical-data.json # File last updated on 2024-09-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/proverb/proverb-test.roc b/exercises/practice/proverb/proverb-test.roc index 9cf95fb..ba85026 100644 --- a/exercises/practice/proverb/proverb-test.roc +++ b/exercises/practice/proverb/proverb-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/proverb/canonical-data.json # File last updated on 2024-09-23 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/pythagorean-triplet/pythagorean-triplet-test.roc b/exercises/practice/pythagorean-triplet/pythagorean-triplet-test.roc index f0ed79c..a3a1ed9 100644 --- a/exercises/practice/pythagorean-triplet/pythagorean-triplet-test.roc +++ b/exercises/practice/pythagorean-triplet/pythagorean-triplet-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/pythagorean-triplet/canonical-data.json # File last updated on 2024-10-10 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/queen-attack/queen-attack-test.roc b/exercises/practice/queen-attack/queen-attack-test.roc index 35316b9..65e0706 100644 --- a/exercises/practice/queen-attack/queen-attack-test.roc +++ b/exercises/practice/queen-attack/queen-attack-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/queen-attack/canonical-data.json # File last updated on 2024-09-21 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/rail-fence-cipher/rail-fence-cipher-test.roc b/exercises/practice/rail-fence-cipher/rail-fence-cipher-test.roc index 806347d..2daa53d 100644 --- a/exercises/practice/rail-fence-cipher/rail-fence-cipher-test.roc +++ b/exercises/practice/rail-fence-cipher/rail-fence-cipher-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/rail-fence-cipher/canonical-data.json # File last updated on 2024-10-23 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/raindrops/raindrops-test.roc b/exercises/practice/raindrops/raindrops-test.roc index 10bcacd..5b438f0 100644 --- a/exercises/practice/raindrops/raindrops-test.roc +++ b/exercises/practice/raindrops/raindrops-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/raindrops/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/rational-numbers/rational-numbers-test.roc b/exercises/practice/rational-numbers/rational-numbers-test.roc index 58d0623..2d1d22a 100644 --- a/exercises/practice/rational-numbers/rational-numbers-test.roc +++ b/exercises/practice/rational-numbers/rational-numbers-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/rational-numbers/canonical-data.json # File last updated on 2024-09-06 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/rectangles/.meta/Example.roc b/exercises/practice/rectangles/.meta/Example.roc index bf8a8fa..fadaf64 100644 --- a/exercises/practice/rectangles/.meta/Example.roc +++ b/exercises/practice/rectangles/.meta/Example.roc @@ -24,7 +24,7 @@ rectangles : Str -> U64 rectangles = \diagram -> grid = diagram - |> Str.split "\n" + |> Str.splitOn "\n" |> List.map Str.toUtf8 height = grid |> List.len grid @@ -40,4 +40,3 @@ rectangles = \diagram -> |> List.sum |> List.sum |> List.sum - diff --git a/exercises/practice/rectangles/rectangles-test.roc b/exercises/practice/rectangles/rectangles-test.roc index ac9881c..c2a02a6 100644 --- a/exercises/practice/rectangles/rectangles-test.roc +++ b/exercises/practice/rectangles/rectangles-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/rectangles/canonical-data.json # File last updated on 2024-09-11 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/resistor-color-duo/resistor-color-duo-test.roc b/exercises/practice/resistor-color-duo/resistor-color-duo-test.roc index d0f7aa8..c9db02a 100644 --- a/exercises/practice/resistor-color-duo/resistor-color-duo-test.roc +++ b/exercises/practice/resistor-color-duo/resistor-color-duo-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/resistor-color-duo/canonical-data.json # File last updated on 2024-09-12 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/resistor-color/resistor-color-test.roc b/exercises/practice/resistor-color/resistor-color-test.roc index 8d4b88e..9173d5e 100644 --- a/exercises/practice/resistor-color/resistor-color-test.roc +++ b/exercises/practice/resistor-color/resistor-color-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/resistor-color/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/rest-api/rest-api-test.roc b/exercises/practice/rest-api/rest-api-test.roc index 6417158..c360e93 100644 --- a/exercises/practice/rest-api/rest-api-test.roc +++ b/exercises/practice/rest-api/rest-api-test.roc @@ -2,8 +2,8 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/rest-api/canonical-data.json # File last updated on 2024-09-09 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", - json: "https://github.com/lukewilliamboswell/roc-json/releases/download/0.10.2/FH4N0Sw-JSFXJfG3j54VEDPtXOoN-6I9v_IA8S18IGk.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", + json: "https://github.com/lukewilliamboswell/roc-json/releases/download/0.11.0/z45Wzc-J39TLNweQUoLw3IGZtkQiEN3lTBv3BXErRjQ.tar.br", } main = diff --git a/exercises/practice/reverse-string/reverse-string-test.roc b/exercises/practice/reverse-string/reverse-string-test.roc index 8db6ad1..0d688a8 100644 --- a/exercises/practice/reverse-string/reverse-string-test.roc +++ b/exercises/practice/reverse-string/reverse-string-test.roc @@ -2,8 +2,8 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/reverse-string/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", - unicode: "https://github.com/roc-lang/unicode/releases/download/0.1.2/vH5iqn04ShmqP-pNemgF773f86COePSqMWHzVGrAKNo.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", + unicode: "https://github.com/roc-lang/unicode/releases/download/0.2.0/odvSckHK9LxWLbsrPmo2s6aQ3bn7C3PALyv0ZI1gAu0.tar.br", } main = diff --git a/exercises/practice/rna-transcription/rna-transcription-test.roc b/exercises/practice/rna-transcription/rna-transcription-test.roc index 67c5189..14f99eb 100644 --- a/exercises/practice/rna-transcription/rna-transcription-test.roc +++ b/exercises/practice/rna-transcription/rna-transcription-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/rna-transcription/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/robot-simulator/robot-simulator-test.roc b/exercises/practice/robot-simulator/robot-simulator-test.roc index 4c69991..53bdaa6 100644 --- a/exercises/practice/robot-simulator/robot-simulator-test.roc +++ b/exercises/practice/robot-simulator/robot-simulator-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/robot-simulator/canonical-data.json # File last updated on 2024-09-23 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/roman-numerals/roman-numerals-test.roc b/exercises/practice/roman-numerals/roman-numerals-test.roc index 48c976c..3758e0d 100644 --- a/exercises/practice/roman-numerals/roman-numerals-test.roc +++ b/exercises/practice/roman-numerals/roman-numerals-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/roman-numerals/canonical-data.json # File last updated on 2024-09-24 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/rotational-cipher/rotational-cipher-test.roc b/exercises/practice/rotational-cipher/rotational-cipher-test.roc index 0d2cb0c..eeef0c9 100644 --- a/exercises/practice/rotational-cipher/rotational-cipher-test.roc +++ b/exercises/practice/rotational-cipher/rotational-cipher-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/rotational-cipher/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/run-length-encoding/run-length-encoding-test.roc b/exercises/practice/run-length-encoding/run-length-encoding-test.roc index 08f5d39..66af719 100644 --- a/exercises/practice/run-length-encoding/run-length-encoding-test.roc +++ b/exercises/practice/run-length-encoding/run-length-encoding-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/run-length-encoding/canonical-data.json # File last updated on 2024-10-10 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/saddle-points/saddle-points-test.roc b/exercises/practice/saddle-points/saddle-points-test.roc index 2a8d406..6ddd5d3 100644 --- a/exercises/practice/saddle-points/saddle-points-test.roc +++ b/exercises/practice/saddle-points/saddle-points-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/saddle-points/canonical-data.json # File last updated on 2024-09-24 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/say/say-test.roc b/exercises/practice/say/say-test.roc index 8e4d1b6..809f487 100644 --- a/exercises/practice/say/say-test.roc +++ b/exercises/practice/say/say-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/say/canonical-data.json # File last updated on 2024-09-22 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/scrabble-score/scrabble-score-test.roc b/exercises/practice/scrabble-score/scrabble-score-test.roc index 794a3f5..a0659d6 100644 --- a/exercises/practice/scrabble-score/scrabble-score-test.roc +++ b/exercises/practice/scrabble-score/scrabble-score-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/scrabble-score/canonical-data.json # File last updated on 2024-09-10 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/secret-handshake/secret-handshake-test.roc b/exercises/practice/secret-handshake/secret-handshake-test.roc index 022dd6e..7594192 100644 --- a/exercises/practice/secret-handshake/secret-handshake-test.roc +++ b/exercises/practice/secret-handshake/secret-handshake-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/secret-handshake/canonical-data.json # File last updated on 2024-09-02 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/series/series-test.roc b/exercises/practice/series/series-test.roc index 4959f5e..5cd25ba 100644 --- a/exercises/practice/series/series-test.roc +++ b/exercises/practice/series/series-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/series/canonical-data.json # File last updated on 2024-09-13 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/sgf-parsing/.meta/Example.roc b/exercises/practice/sgf-parsing/.meta/Example.roc index 1475a5c..40e02af 100644 --- a/exercises/practice/sgf-parsing/.meta/Example.roc +++ b/exercises/practice/sgf-parsing/.meta/Example.roc @@ -1,6 +1,6 @@ module [parse] -import parser.Core as P +import parser.Parser as P import parser.String as S # --- SGF GRAMMAR --- diff --git a/exercises/practice/sgf-parsing/sgf-parsing-test.roc b/exercises/practice/sgf-parsing/sgf-parsing-test.roc index a628388..43d3bf4 100644 --- a/exercises/practice/sgf-parsing/sgf-parsing-test.roc +++ b/exercises/practice/sgf-parsing/sgf-parsing-test.roc @@ -2,8 +2,8 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/sgf-parsing/canonical-data.json # File last updated on 2024-10-17 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", - parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.7.2/1usTzOOACTpnkarBX0ED3gFESzR4ROdAlt1Llf4WFzo.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", + parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.9.0/w8YKp2YAgQt5REYk912HfKAHBjcXsrnvtjI0CBzoAT4.tar.br", } main = diff --git a/exercises/practice/sieve/sieve-test.roc b/exercises/practice/sieve/sieve-test.roc index ea6e204..bc2bdc8 100644 --- a/exercises/practice/sieve/sieve-test.roc +++ b/exercises/practice/sieve/sieve-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/sieve/canonical-data.json # File last updated on 2024-09-15 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/simple-linked-list/simple-linked-list-test.roc b/exercises/practice/simple-linked-list/simple-linked-list-test.roc index ea001fa..02b873a 100644 --- a/exercises/practice/simple-linked-list/simple-linked-list-test.roc +++ b/exercises/practice/simple-linked-list/simple-linked-list-test.roc @@ -1,6 +1,6 @@ # File last updated on 2024-10-22 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/space-age/space-age-test.roc b/exercises/practice/space-age/space-age-test.roc index 798a4d9..1cd57e0 100644 --- a/exercises/practice/space-age/space-age-test.roc +++ b/exercises/practice/space-age/space-age-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/space-age/canonical-data.json # File last updated on 2024-09-07 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/spiral-matrix/spiral-matrix-test.roc b/exercises/practice/spiral-matrix/spiral-matrix-test.roc index 6f9e77a..a5e9930 100644 --- a/exercises/practice/spiral-matrix/spiral-matrix-test.roc +++ b/exercises/practice/spiral-matrix/spiral-matrix-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/spiral-matrix/canonical-data.json # File last updated on 2024-10-07 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/square-root/square-root-test.roc b/exercises/practice/square-root/square-root-test.roc index af2d521..a618152 100644 --- a/exercises/practice/square-root/square-root-test.roc +++ b/exercises/practice/square-root/square-root-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/square-root/canonical-data.json # File last updated on 2024-08-29 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/strain/strain-test.roc b/exercises/practice/strain/strain-test.roc index 2517b17..2b1e317 100644 --- a/exercises/practice/strain/strain-test.roc +++ b/exercises/practice/strain/strain-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/strain/canonical-data.json # File last updated on 2024-10-08 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/sublist/sublist-test.roc b/exercises/practice/sublist/sublist-test.roc index 8fa2671..91ebbd6 100644 --- a/exercises/practice/sublist/sublist-test.roc +++ b/exercises/practice/sublist/sublist-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/sublist/canonical-data.json # File last updated on 2024-09-05 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/sum-of-multiples/sum-of-multiples-test.roc b/exercises/practice/sum-of-multiples/sum-of-multiples-test.roc index 9aa01b0..e2732cf 100644 --- a/exercises/practice/sum-of-multiples/sum-of-multiples-test.roc +++ b/exercises/practice/sum-of-multiples/sum-of-multiples-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/sum-of-multiples/canonical-data.json # File last updated on 2024-09-02 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/tournament/.meta/Example.roc b/exercises/practice/tournament/.meta/Example.roc index 22cd4e4..2ee9838 100644 --- a/exercises/practice/tournament/.meta/Example.roc +++ b/exercises/practice/tournament/.meta/Example.roc @@ -10,9 +10,9 @@ tally = \table -> else table - |> Str.split "\n" + |> Str.splitOn "\n" |> List.mapTry? \row -> - when row |> Str.split ";" is + when row |> Str.splitOn ";" is [team1, team2, resultStr] -> result = resultStr |> parseResult? Ok (team1, team2, result) diff --git a/exercises/practice/tournament/tournament-test.roc b/exercises/practice/tournament/tournament-test.roc index 3989b24..c144c81 100644 --- a/exercises/practice/tournament/tournament-test.roc +++ b/exercises/practice/tournament/tournament-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/tournament/canonical-data.json # File last updated on 2024-10-13 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/transpose/.meta/Example.roc b/exercises/practice/transpose/.meta/Example.roc index 69b0c9f..124cf7d 100644 --- a/exercises/practice/transpose/.meta/Example.roc +++ b/exercises/practice/transpose/.meta/Example.roc @@ -3,10 +3,7 @@ module [transpose] ## Transpose the input string. Input string must be ASCII. transpose : Str -> Str transpose = \string -> - chars = - string - |> Str.split "\n" - |> List.map \row -> row |> Str.toUtf8 + chars = string |> Str.toUtf8 |> List.splitOn '\n' getChar = \row, col -> chars |> List.get? row |> List.get col maxWidth = chars |> List.map List.len |> List.max |> Result.withDefault 0 diff --git a/exercises/practice/transpose/transpose-test.roc b/exercises/practice/transpose/transpose-test.roc index 6737e98..c265bc9 100644 --- a/exercises/practice/transpose/transpose-test.roc +++ b/exercises/practice/transpose/transpose-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/transpose/canonical-data.json # File last updated on 2024-09-11 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/triangle/triangle-test.roc b/exercises/practice/triangle/triangle-test.roc index f65a0ef..ddad121 100644 --- a/exercises/practice/triangle/triangle-test.roc +++ b/exercises/practice/triangle/triangle-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/triangle/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/two-bucket/two-bucket-test.roc b/exercises/practice/two-bucket/two-bucket-test.roc index 3786056..289419f 100644 --- a/exercises/practice/two-bucket/two-bucket-test.roc +++ b/exercises/practice/two-bucket/two-bucket-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/two-bucket/canonical-data.json # File last updated on 2024-10-01 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/two-fer/two-fer-test.roc b/exercises/practice/two-fer/two-fer-test.roc index 8175a51..cdc7deb 100644 --- a/exercises/practice/two-fer/two-fer-test.roc +++ b/exercises/practice/two-fer/two-fer-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/two-fer/canonical-data.json # File last updated on 2024-08-27 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/variable-length-quantity/variable-length-quantity-test.roc b/exercises/practice/variable-length-quantity/variable-length-quantity-test.roc index aa15b69..2679188 100644 --- a/exercises/practice/variable-length-quantity/variable-length-quantity-test.roc +++ b/exercises/practice/variable-length-quantity/variable-length-quantity-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/variable-length-quantity/canonical-data.json # File last updated on 2024-10-15 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/word-count/word-count-test.roc b/exercises/practice/word-count/word-count-test.roc index 56cc2ce..f508c7c 100644 --- a/exercises/practice/word-count/word-count-test.roc +++ b/exercises/practice/word-count/word-count-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/word-count/canonical-data.json # File last updated on 2024-09-29 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/word-search/.meta/Example.roc b/exercises/practice/word-search/.meta/Example.roc index 144372f..ccfa8ff 100644 --- a/exercises/practice/word-search/.meta/Example.roc +++ b/exercises/practice/word-search/.meta/Example.roc @@ -23,7 +23,7 @@ getChar = \grid, columnIndex, rowIndex -> search : Str, List Str -> Dict Str WordLocation search = \grid, wordsToSearchFor -> - { rows, width } = grid |> Str.split "\n" |> List.map Str.toUtf8 |> padRight + { rows, width } = grid |> Str.toUtf8 |> List.splitOn '\n' |> padRight height = List.len rows heightI64 = height |> Num.toI64 widthI64 = width |> Num.toI64 diff --git a/exercises/practice/word-search/word-search-test.roc b/exercises/practice/word-search/word-search-test.roc index 5bc79f1..3061b7a 100644 --- a/exercises/practice/word-search/word-search-test.roc +++ b/exercises/practice/word-search/word-search-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/word-search/canonical-data.json # File last updated on 2024-10-07 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/wordy/.meta/Example.roc b/exercises/practice/wordy/.meta/Example.roc index 5a8dd01..4c219ea 100644 --- a/exercises/practice/wordy/.meta/Example.roc +++ b/exercises/practice/wordy/.meta/Example.roc @@ -20,7 +20,7 @@ evaluateExpression = \accumulator, operations -> answer : Str -> Result I64 [QuestionArgHadAnUnknownOperation Str, QuestionArgHadASyntaxError Str] answer = \question -> - words = question |> Str.replaceEach "?" " ?" |> Str.split " " + words = question |> Str.replaceEach "?" " ?" |> Str.splitOn " " when words is ["What", "is", numberString, .. as operations, "?"] -> maybeStartNumber = Str.toI64 numberString @@ -37,4 +37,3 @@ answer = \question -> [_, "is", _, .., "?"] -> Err (QuestionArgHadAnUnknownOperation question) [_, "are", .., "?"] -> Err (QuestionArgHadAnUnknownOperation question) _ -> Err (QuestionArgHadASyntaxError question) - diff --git a/exercises/practice/wordy/wordy-test.roc b/exercises/practice/wordy/wordy-test.roc index 4005047..b8655b7 100644 --- a/exercises/practice/wordy/wordy-test.roc +++ b/exercises/practice/wordy/wordy-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/wordy/canonical-data.json # File last updated on 2024-09-03 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/yacht/yacht-test.roc b/exercises/practice/yacht/yacht-test.roc index e687de7..1016c40 100644 --- a/exercises/practice/yacht/yacht-test.roc +++ b/exercises/practice/yacht/yacht-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/yacht/canonical-data.json # File last updated on 2024-09-23 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main = diff --git a/exercises/practice/zebra-puzzle/zebra-puzzle-test.roc b/exercises/practice/zebra-puzzle/zebra-puzzle-test.roc index 603a1e1..49ed5ee 100644 --- a/exercises/practice/zebra-puzzle/zebra-puzzle-test.roc +++ b/exercises/practice/zebra-puzzle/zebra-puzzle-test.roc @@ -2,7 +2,7 @@ # https://github.com/exercism/problem-specifications/tree/main/exercises/zebra-puzzle/canonical-data.json # File last updated on 2024-10-22 app [main] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br", } main =