Is it possible to import a custom ability? When I try to do this, I get the following
An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: https://github.com/roc-lang/roc/issues/new/choose
thread '<unnamed>' panicked at 'Import ability member `18.IdentId(6)` not available', crates/compiler/load_internal/src/file.rs:4871:29
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Did you expose each of the member functions?
You have to expose the ability itself and each function in the ability to be able to import and use them in another module.
Is there an example? Because it seems I exposed everything
Should be the same as what is done in the standard library for hash, for example. Or I did it here with Arbitrary.
ah, wait a sec. It seems I understood. ok, I'll create a ticket for better logging then
Sounds similar to https://github.com/roc-lang/roc/issues/6094
Made a comment there in case anyone encountered the same problem. Thank you
Oh nice, didn't know about that workaround
Or maybe that is the desired behaviour
Last updated: Jul 05 2025 at 12:14 UTC