Stream: beginners

Topic: weird imports?


view this post on Zulip Steven Chen (Dec 11 2023 at 23:54):

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?

view this post on Zulip Brendan Hansknecht (Dec 12 2023 at 02:13):

I guess for Modules, we never implemented the { ... } style import

view this post on Zulip Brendan Hansknecht (Dec 12 2023 at 02:13):

It is only currently a feature for values from within a Module.

view this post on Zulip Brendan Hansknecht (Dec 12 2023 at 02:13):

So just a missing compiler feature that needs an issue filed and for someone to implement it.

view this post on Zulip Luke Boswell (Dec 12 2023 at 06:22):

Note @Agus Zubiaga is currently rewriting this part of the compiler for Module Params. I think that will change the way this works.

view this post on Zulip Agus Zubiaga (Dec 12 2023 at 10:57):

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