Stream: beginners

Topic: ✔ module { maxCapacity: U64 } -> [ ... ]


view this post on Zulip Mo (Dec 12 2024 at 21:07):

Hi again, I thought I saw this form of a module header somewhere, to parameterise a module with a compile-time configuration. Is this a real thing, and is there an example somewhere?

view this post on Zulip Luke Boswell (Dec 12 2024 at 21:22):

All the tests for this feature are in

https://github.com/roc-lang/roc/tree/main/crates/cli/tests/test-projects/module_params

view this post on Zulip Luke Boswell (Dec 12 2024 at 21:23):

It's not super well documented yet, it's still a really new thing. :smiley:

view this post on Zulip Notification Bot (Dec 13 2024 at 01:49):

Mo has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC