Skip to content

Commit

Permalink
Merge pull request #35 from Anton-4/main
Browse files Browse the repository at this point in the history
Update examples
  • Loading branch information
lukewilliamboswell authored Sep 1, 2024
2 parents dd15253 + 1adbe70 commit 459b844
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 20 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
...
```
3 changes: 1 addition & 2 deletions examples/optional.roc
Original file line number Diff line number Diff line change
@@ -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]

Expand Down
3 changes: 1 addition & 2 deletions examples/simple1.roc
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 1 addition & 2 deletions examples/simple2.roc
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 1 addition & 2 deletions examples/tuple.roc
Original file line number Diff line number Diff line change
@@ -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

Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 459b844

Please sign in to comment.