I added a new issue #4319 for importing multiple packages. Currently roc hangs with both roc check
and roc run
for the following. I am not sure if this is is a supported feature, or perhaps I am not using the packages and imports correctly.
app "hangs"
packages { pf: "cli-platform/main.roc", ps: "Parser.roc" }
imports [
pf.Program.{ Program },
pf.Stdout,
ps.Parser.{ Parser },
]
provides [main] to pf
main : Program
main =
Stdout.line "This code hangs due to Parser.roc package"
|> Program.quick
I've replied on the github issue.
Ahk thank you. Do you think it would be worthwhile if I add this into the tutorial docs? Also, is it an issue that it hangs? I would have expected a helpful error message.
Roc hanging or crashing without a useful error message is always an issue. May not be top priority, but they are paramount to the long term experience.
This would indeed be good to add to the tutorial @Luke Boswell :)
Updated TUTORIAL.md and created PR #4320.
Last updated: Jul 06 2025 at 12:14 UTC