Hierarchical modules (was: Packages)

Simon Marlow simonmar@microsoft.com
Mon, 9 Sep 2002 14:49:02 +0100


> Simon Marlow wrote:
>=20
>  | >   - I can add my own packages, can I add my own modules to
>  | >     the hierarchy?
>  |
>  | Yes, a package can contain hierarchical modules.
>=20
> So how do I add a hierarchical module?

Suppose you want to have a package containing module Foo.Bar.Baz.  You
make a package spec containing the line

	import_dirs=3D["D"],

for some directory D, and you put Baz.hi in D/Foo/Bar/Baz.hi.

Cheers,
	Simon