If I write imports [pf.Stdout, pf.Utc, pf.Task, ...]
it is fine. But if I write: imports [pf.{ Stdout, Utc, Task }, ...
it gives me error message: I am expecting a comma or end of list, like imports [Shape, Vector]
. What am I missing here?
I guess for Modules, we never implemented the { ... }
style import
It is only currently a feature for values from within a Module.
So just a missing compiler feature that needs an issue filed and for someone to implement it.
Note @Agus Zubiaga is currently rewriting this part of the compiler for Module Params. I think that will change the way this works.
Yeah, that’s a good point. AFAIK { … }
isn’t a thing in the new import syntax. We will be using the exposing
keyword for bringing module names into scope, and module folders won’t be allowed.
Last updated: Jul 06 2025 at 12:14 UTC