Stream: beginners

Topic: void tag constructor?


view this post on Zulip Brendan Hansknecht (Jul 04 2024 at 21:31):

I have never seen this error before. It is a roc runtime error:

Roc crashed with:

    voided tag constructor is unreachable

Here is the call stack that led to the crash:

    InternalTask.ok
    Task.ok
    Task.(anonymous function)
    .(anonymous function)

Any ideas?

Hitting it in the sqlite.roc example here: https://github.com/roc-lang/basic-cli/compare/main...ffi

view this post on Zulip Brendan Hansknecht (Jul 04 2024 at 23:29):

Found a workaround. Still not exactly sure what is wrong, but I think I built code with uncontrained types passed to effects and that is what broke things.

view this post on Zulip Ayaz Hafiz (Jul 04 2024 at 23:39):

seems like a miscompilation


Last updated: Jul 06 2025 at 12:14 UTC