Can I put and expose ports in a separate module?

Hi all,

can I put and expose ports in a separate module?
I have several apps wthat will share the same ports.

I have just tried but the compiler is complaining that in my ports module I don’t have a main.

Is there an example of such a layout in the wild?

Cheers!

Yes that should be possible. :thinking:

Could you maybe share some example?

Also, unrelated but perhaps elm-ts-interop might be of interest to you.

It was indeed my build process that was wrong.
I was mistakenly building the module with elm make

/me feels embarassed.

Sorry for the noise

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.