[m-users.] Creating an interface module

Volker Wysk <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
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

_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmStbl4ACgkQ+K4ydFOs
HoWf6BAAgnH2WDKBhh6zIwqWQJNDNS8Y4CwZkab8shJ1v5FbndcF3BnHpIW4eTiP
Mdje5nGJtpVzkEXBdjKMmW900mW6agU+vSrF8twsRbRCIBHj+i35MoHfUiynRE27
6K/A2Nd/2oqXHjrU2Fk45xXPhTVkIdXmGyRiqfzZG7E5bjAmJYAicckNXbGAcwyY
7EnEdJJGXCkO3NiNBJNlDb9osJuDgwbf4KDKfxAq4w10XLddEEGmRiRrU0PVpfCD
LG844n6tTGWEmylOouUReHLCfHAqjOkcPbUXfB6mEZntk4M6NQFNEYiOaEqQI4pE
fwlTM0UzcxqWZVBysyyUqH1pu77AnodAyucJg83E6tgDnMqrd9elrdtTXaaS549q
DA0T/F3LVKUICVUOjNPXJzKsP4dL9rNjO1lwNHL7iQuc49iQC67mzvigoHJBxR6G
BgK/HGIodB5ohSn6C6l6WpxF3Xe914tyGabCO6cZpvZrVBgtLXsHSgXj68jmS3N4
h3BL1+/4lpFqSoMGpSPnq6Jzzunk1Sy/lyTREOavQ5ZFaYWp23V6HPNYt+zymyih
+xSSzKDErdHTaCa++P5cTiIZEtaDgYgB+I3cZSNsP11PoOYuQzLNoQd4th2JSvXz
fxleGBX1lS4Uv1Du958/9aciCwPamfcuzlFvJ6Tg2+RxXsVQLo8=
=ZC12
-----END PGP SIGNATURE-----
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.