[Haskell-cafe] 2 modules in one file

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Wed Aug 27 07:19:43 EDT 2008


Maurí­cio <briqueabraque at yahoo.com> wrote:

> Is it allowed to write two
> different modules in a single
> file?

Some compilers permit it (e.g. Freja), most do not (e.g. ghc).  The
Language Report makes no specification for the mapping between module
sources and the files that contain them.

Regards,
    Malcolm


More information about the Haskell-Cafe mailing list