Stream: compiler development

Topic: package import duplication


view this post on Zulip Anton (May 11 2026 at 16:39):

For a package, we currently require this importing of modules in addition to having them in the exposes list:

package
    [
        Pipeline,
        Field,
        Transform,
        Validator,
        Util,
        Taxonomy,
    ]
    {}

import Pipeline
import Field
import Transform
import Validator
import Util
import Taxonomy

I presume we can change this to do the importing ourselves behind the scenes?

view this post on Zulip Richard Feldman (May 11 2026 at 16:53):

yes!

view this post on Zulip Richard Feldman (May 11 2026 at 16:53):

we'd need to still make import be optional in case you want to use exposing

view this post on Zulip Richard Feldman (May 11 2026 at 16:53):

but yeah seems unnecessary to require it


Last updated: May 23 2026 at 12:51 UTC