Re: [Haskell-cafe] 2 modules in one file

2008-08-27 Thread Yitzchak Gale
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

Re: [Haskell-cafe] 2 modules in one file

2008-08-27 Thread Henrik Nilsson
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

Re: [Haskell-cafe] 2 modules in one file

2008-08-27 Thread Yitzchak Gale
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)

Re: [Haskell-cafe] 2 modules in one file

2008-08-27 Thread Malcolm Wallace
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,

Re: [Haskell-cafe] 2 modules in one file

2008-08-26 Thread Marc Weber
> 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

[Haskell-cafe] 2 modules in one file

2008-08-25 Thread Maurí­cio
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 __