Stream: beginners

Topic: Code Sample with Explanations on landing page


view this post on Zulip JRI98 (Dec 04 2023 at 16:21):

Which platform is https://www.roc-lang.org/#code-sample supposed to run in? I can't seem to find the Http.get function

view this post on Zulip Johan Lindskogen (Dec 04 2023 at 16:28):

checkout the full example here for Http imports https://www.roc-lang.org/examples/Tasks/README.html

view this post on Zulip Anton (Dec 04 2023 at 16:28):

I think Http.get may be a deliberate simplification for educational sake

view this post on Zulip JRI98 (Dec 04 2023 at 16:36):

Oh ok. If that is the case now it makes sense :smile:

view this post on Zulip Brendan Hansknecht (Dec 04 2023 at 16:45):

basic-cli does have http capabilities in general though

view this post on Zulip Anton (Dec 04 2023 at 16:57):

You'll also need the JSON package btw, example.

view this post on Zulip Luke Boswell (Dec 04 2023 at 18:43):

Now we have basic-webserver I could add an example that uses that to encode/decode JSON for a simple API.


Last updated: Jul 05 2025 at 12:14 UTC