[Haskell-cafe] 2 modules in one file

Maurí­cio briqueabraque at yahoo.com
Tue Aug 26 00:10:08 EDT 2008


Hi,

Is it allowed to write two
different modules in a single
file? Something like:

module Mod1 (...) where {
...
}

module Mod2 (...) where {
import Mod1;
...
}

I tried, and got an error,
but would like to confirm
that there's no way to do
that.

Thanks,
Maurício



More information about the Haskell-Cafe mailing list