I have submitted this as Feature Request #2550
http://hackage.haskell.org/trac/ghc/ticket/2550
Please add any comments as appropriate.
Thanks,
Yitz
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-c
Hi,
Yitzchak Gale wrote:
> But for large and complex projects, this policy really complicates
> the task of the project manager who wants to be able to
> present various views of the source to teams working on
> different subprojects, while juggling the version control
> in an intelligent way. D
Maurício wrote:
>> Is it allowed to write two
>> different modules in a single
>> file?
That would be a really nice feature, especially
since modules are Haskell's only encapsulation
tool. You want it to be a lightweight as possible.
Malcolm Wallace wrote:
> Some compilers permit it (e.g. Freja)
Maurício <[EMAIL PROTECTED]> 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,
> 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.
No, th
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
__