Stream: beginners

Topic: ✔ Task.fromResult not callable?


view this post on Zulip Michał Łępicki (Oct 17 2022 at 18:47):

Why am I seeing this if the Task module does have this function exposed? source - it's a fairly new addition, was it not added properly?

── NOT EXPOSED ────────────────────────────────────────────────────── 3/3a.roc ─

The Task module does not expose `fromResult`:

16│      _input <- Task.await (Task.fromResult (fileContents
                               ^^^^^^^^^^^^^^^

view this post on Zulip Ayaz Hafiz (Oct 17 2022 at 18:51):

Just to check, in your local clone of the compiler, is that function exposed?

view this post on Zulip Michał Łępicki (Oct 17 2022 at 18:55):

yes!

view this post on Zulip Michał Łępicki (Oct 17 2022 at 18:56):

wait... let me double check, maybe not...

view this post on Zulip Michał Łępicki (Oct 17 2022 at 18:58):

That was it, I did fetch a new compiler binary and friends, but I was pointing the platform to somewhere else :man_facepalming: Sorry!

view this post on Zulip Notification Bot (Oct 17 2022 at 18:59):

Michał Łępicki has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC