[m-users.] Creating an interface module

Volker Wysk post at volker-wysk.de
Wed Jul 12 00:59:42 AEST 2023


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?

Cheers,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20230711/a18f77ff/attachment.sig>


More information about the users mailing list