diff --git a/examples/Arithmetic/main.roc b/examples/Arithmetic/main.roc index 0e3a24f..5358f89 100644 --- a/examples/Arithmetic/main.roc +++ b/examples/Arithmetic/main.roc @@ -46,7 +46,7 @@ readArgs = args = Arg.list {} - |> Task.mapErr! \_ -> InvalidArg + |> Task.mapErr! \_ -> InvalidArg aResult = List.get args 1 |> Result.try Str.toI32 bResult = List.get args 2 |> Result.try Str.toI32 diff --git a/examples/Parser/main.roc b/examples/Parser/main.roc index 6570166..bb82612 100644 --- a/examples/Parser/main.roc +++ b/examples/Parser/main.roc @@ -9,11 +9,11 @@ import parser.String exposing [parseStr, codeunit, anyCodeunit] main = many letterParser - |> parseStr inputStr - |> Result.map countLetterAs - |> Result.map \count -> "I counted $(count) letter A's!" - |> Result.withDefault "Ooops, something went wrong parsing" - |> Stdout.line! + |> parseStr inputStr + |> Result.map countLetterAs + |> Result.map \count -> "I counted $(count) letter A's!" + |> Result.withDefault "Ooops, something went wrong parsing" + |> Stdout.line! Letter : [A, B, C, Other] diff --git a/flake.lock b/flake.lock index b73f5c2..edf073d 100644 --- a/flake.lock +++ b/flake.lock @@ -39,11 +39,11 @@ "systems": "systems_2" }, "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "lastModified": 1726560853, + "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", "type": "github" }, "original": { @@ -64,11 +64,11 @@ ] }, "locked": { - "lastModified": 1710868679, - "narHash": "sha256-V1o2bCZdeYKP/0zgVp4EN0KUjMItAMk6J7SvCXUI5IU=", + "lastModified": 1713543440, + "narHash": "sha256-lnzZQYG0+EXl/6NkGpyIz+FEOc/DSEG57AP1VsdeNrM=", "owner": "guibou", "repo": "nixGL", - "rev": "d709a8abcde5b01db76ca794280745a43c8662be", + "rev": "310f8e49a149e4c9ea52f1adf70cdc768ec53f8a", "type": "github" }, "original": { @@ -102,11 +102,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1727352598, - "narHash": "sha256-YMAfnjqPNlKHKDFp1FAoVKqN5a3okUztdwHZ5BLtX3Q=", + "lastModified": 1731023998, + "narHash": "sha256-vP++9oicdloKoPfqkiT2RCN5+Ia4FxzTRfLpZJSVNWA=", "owner": "roc-lang", "repo": "roc", - "rev": "2d03697acb9ac02962c295de87d0e7a7b76c34ce", + "rev": "dfb2966281e1d67eb30b650e59e0c2b264a268af", "type": "github" }, "original": { @@ -128,21 +128,17 @@ }, "rust-overlay": { "inputs": { - "flake-utils": [ - "roc", - "flake-utils" - ], "nixpkgs": [ "roc", "nixpkgs" ] }, "locked": { - "lastModified": 1713150335, - "narHash": "sha256-Ic7zCPfiSYc9nFFp+E44WFk3TBJ99J/uPZ4QXX+uPPw=", + "lastModified": 1727490462, + "narHash": "sha256-OrrPiNBiikv9BR464XTT75FzOq7tKAvMbMi7YOKVIeg=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "b186d85e747e2b7bee220ec95839fb66c868dc47", + "rev": "11a13e50debafae4ae802f1d6b8585101516dd93", "type": "github" }, "original": { @@ -158,11 +154,11 @@ ] }, "locked": { - "lastModified": 1727317727, - "narHash": "sha256-yGYahXzCquyYEgf5GTtvtaN5hXbw20Ok2+o8uVxoaFs=", + "lastModified": 1731032894, + "narHash": "sha256-dQSyYPmrQiPr+PGEd+K8038rubFGz7G/dNXVeaGWE0w=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "a3d832f389606d7dc61a45b244c72ea472d1fcd4", + "rev": "d52f2a4c103a0acf09ded857b9e2519ae2360e59", "type": "github" }, "original": {