[Haskell-cafe] Modules and files

Iavor S. Diatchki diatchki at cse.ogi.edu
Mon Jun 14 18:59:01 EDT 2004

according to the report there should be no connection between modules
and files, and one should be able to have multiple modules in a file,
and even a single module in multiple files.  however none of the 
support that, so in effect there is 1-1 correspondence between modules 
and files.
the reason for this is that it provides an easy way for the 
implementation to find the modules.

Andrei de A. Formiga wrote:

>   Hi,
>   Is it possible to have more than one module defined
>in a single file ? As far as I can tell, the Haskell
>Report doesn't prohibit this, but so far my tests with
>hugs and ghc indicate they don't accept multi-module
>files. Is this standard ? Thanks.
>[]s, Andrei de A. Formiga
>Do you Yahoo!?
>Friends.  Fun.  Try the all-new Yahoo! Messenger.
>Haskell-Cafe mailing list
>Haskell-Cafe at haskell.org

More information about the Haskell-Cafe mailing list