[Haskell-beginners] modules

Michael Snoyman michael at snoyman.com
Wed Jul 7 12:38:35 EDT 2010


On Wed, Jul 7, 2010 at 7:18 PM, Michael Mossey <mpm at alumni.caltech.edu>wrote:

> So I created the following directory structure:
>
>  home /MusDoc/MusDoc.hs
>  home /MusDoc/FromXML.hs
>  home /MusDoc/Timing.hs
>  home /Midi/FromMusDoc.hs
>
> I set -i to "home" referred to above, so I import these modules with
> commands like
>
> import MusDoc.MusDoc
> import Midi.FromMusDoc
> etc..
>
> What do I do to import everything in MusDoc via
>
> import MusDoc
>
> ?
>
> I suspect this has something to do with packages... don't feel a need to
> explain it all---point me to a good explanation and I'll probably figure it
> out.
>
> Mike
>
>
> You'd need to create a file "MusDoc.hs" which imports all of the other
files, there's no way to automatically import all sub-modules (AFAIK).

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20100707/fccf9f56/attachment.html


More information about the Beginners mailing list