The new import syntax is :chefkiss:, nicely done.
i still can't wait for this example to work, but hey at least i learned about the new syntax! https://github.com/roc-lang/roc/blob/main/examples/cli/argsBROKEN.roc
also, great job updating the platform links in the example repo to the full urls, that's really helpful for new users
that, plus the !
syntax, and these examples are looking really nice
have you considered adding exposing
to the app
header as well, for symmetry? something like app exposing [main] with {...}
? I'm sure the answer is "yes" and it's annoying to make any changes now, but just figured i'd ask
We wanted to make all the headers more lightweight and use less keywords. The app
module syntax is meant to match that of the new module
syntax with the list of exposed/provided values right after the header type keyword.
module [ExposedType, exposedFn]
# with module params
module {param1, param2} -> ExposedType, exposedFn]
ah, nice, thanks
drew said:
i still can't wait for this example to work, but hey at least i learned about the new syntax! https://github.com/roc-lang/roc/blob/main/examples/cli/argsBROKEN.roc
@drew You might be interested on @Sam Mohr's Weaver package: https://github.com/smores56/weaver
ooo awesome
that is indeed exactly what i want
though i'm still confused why the stdlib (which has a very nice API btw) segfaults and this works
i'm guessing the package somehow works around the current limitation?
Yeah, that "error in alias analysis" bug is a little unpredictable.
I'm sure it's predictable by people smarter than me, but Weaver doesn't seem to run into it :smiley:
Last updated: Jul 06 2025 at 12:14 UTC