Re: [m-users.] Creating an interface module

Peter Wang <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
On Tue, 11 Jul 2023 16:59:42 +0200 Volker Wysk <[email protected]> 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
_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.