[m-users.] Creating an interface module
Peter Wang
novalazy at gmail.com
Fri Jul 14 17:41:38 AEST 2023
On Tue, 11 Jul 2023 16:59:42 +0200 Volker Wysk <post at volker-wysk.de> wrote:
> Hi
>
> In Haskell, you can import things into a first module from a second module
> and reexport them from the first one. So you can use the first module as an
> interface to things from several modules.
>
> This doesn't seem to be possible in Mercury. You need to import all the
> modules which contain parts of what you need.
>
> Submodules don't seem to be the answer.
>
> Am I missing something? What is the recommended practice when you want to
> split a library into several modules?
Mercury's module system is pretty basic and doesn't support
re-exporting.
Peter
More information about the users
mailing list