Stream: beginners

Topic: importing from interface in subfolder


view this post on Zulip Kilian Vounckx (Sep 11 2022 at 18:55):

I am trying out creating a bigger project structure.
I am creating an library package.
My file structure looks like this

.
|---examples
|    |---example1.roc
|
|---src
     |---Interface1.roc
     |---Interface2.roc

example1.roc is an app, Interface1.roc and Interface2.roc are interfaces. Is there a way to import the interfaces in example1.roc?

view this post on Zulip jan kili (Sep 11 2022 at 20:15):

I believe CURRENTLY any interface/library needs to be in the same directory as an app in order to be importable by that app.

view this post on Zulip Kilian Vounckx (Sep 11 2022 at 20:20):

Ah too bad
Makes sense this isn't a priority though

view this post on Zulip Richard Feldman (Sep 11 2022 at 20:54):

yeah the current plan is for this to change eventually, but that's part of a 2023 project at the earliest :big_smile:


Last updated: Jul 05 2025 at 12:14 UTC