diff --git a/README.md b/README.md index b7bee80..b4e5c85 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,9 @@ Alternatively, generate docs locally using `roc docs package/main.roc` and then You can use the release URL package in your Roc app. In your `app.roc` file you can import the json package like so. ```roc -app "example" - packages { - cli: "https://github.com/roc-lang/basic-cli/releases/download/[REPLACE WITH RELEASE URL].tar.br", - json: "https://github.com/lukewilliamboswell/roc-json/releases/download/[REPLACE WITH RELEASE URL].tar.br", - } - ... +app [example] { + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/[REPLACE WITH RELEASE URL].tar.br", + json: "https://github.com/lukewilliamboswell/roc-json/releases/download/[REPLACE WITH RELEASE URL].tar.br", +} +... ``` diff --git a/examples/optional.roc b/examples/optional.roc index bc0e5f7..acaff11 100644 --- a/examples/optional.roc +++ b/examples/optional.roc @@ -1,10 +1,9 @@ app [main] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", json: "../package/main.roc", # use release URL (ends in tar.br) for local example, see github.com/lukewilliamboswell/roc-json/releases } import cli.Stdout -import cli.Task import json.Json import json.OptionOrNull exposing [OptionOrNull] diff --git a/examples/simple1.roc b/examples/simple1.roc index 2b78b44..e226c72 100644 --- a/examples/simple1.roc +++ b/examples/simple1.roc @@ -1,9 +1,8 @@ app [main] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", json: "../package/main.roc", # use release URL (ends in tar.br) for local example, see github.com/lukewilliamboswell/roc-json/releases } -import cli.Task import cli.Stdout import json.Json diff --git a/examples/simple2.roc b/examples/simple2.roc index cec8f96..73bfecf 100644 --- a/examples/simple2.roc +++ b/examples/simple2.roc @@ -1,10 +1,9 @@ app [main] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", json: "../package/main.roc", # use release URL (ends in tar.br) for local example, see github.com/lukewilliamboswell/roc-json/releases } import cli.Stdout -import cli.Task import json.Json import "data.json" as requestBody : List U8 diff --git a/examples/tuple.roc b/examples/tuple.roc index d899f61..145120a 100644 --- a/examples/tuple.roc +++ b/examples/tuple.roc @@ -1,9 +1,8 @@ app [main] { - cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br", + cli: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br", json: "../package/main.roc", # use release URL (ends in tar.br) for local example, see github.com/lukewilliamboswell/roc-json/releases } -import cli.Task import cli.Stdout import json.Json diff --git a/flake.lock b/flake.lock index 52b0e18..92d4c36 100644 --- a/flake.lock +++ b/flake.lock @@ -102,11 +102,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1712930574, - "narHash": "sha256-9BIrDgumBUW3AHxoz3qTsPtBOGlVM+8uJOhL0MiGurE=", + "lastModified": 1725110531, + "narHash": "sha256-Nrp1NNv2jpr39eA8ykup6qxKaiX1EoH7W3NmT9cVkUw=", "owner": "roc-lang", "repo": "roc", - "rev": "237bd942ed1ed23b39f07ed1ee88dfe23c223fc5", + "rev": "835ab1a203aac24c784f7198033f096a9e9b185f", "type": "github" }, "original": { @@ -137,11 +137,11 @@ ] }, "locked": { - "lastModified": 1712369449, - "narHash": "sha256-tbWug3uXPlSm1j0xD80Y3xbP+otT6gLnQo1e/vQat48=", + "lastModified": 1713150335, + "narHash": "sha256-Ic7zCPfiSYc9nFFp+E44WFk3TBJ99J/uPZ4QXX+uPPw=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "41b3b080cc3e4b3a48e933b87fc15a05f1870779", + "rev": "b186d85e747e2b7bee220ec95839fb66c868dc47", "type": "github" }, "original": {