Yes, good point. I suppose there's really no need to re-declare main once it's
been imported. Thanks!
-Original Message-
From: Remi Turk [mailto:[EMAIL PROTECTED]
Sent: Thu 12/29/2005 4:34 PM
To: Scherrer, Chad
Cc: S Koray Can; haskell-cafe@haskell.org
Subject: Re: [Haskel
On Fri, Dec 16, 2005 at 07:55:50AM -0800, Scherrer, Chad wrote:
> From: S Koray Can [mailto:[EMAIL PROTECTED]
> Why not do this: name none of those modules Main.hs, and have an empty
> module Main.hs with only "import MainDeJour" and "main =
> MainDeJour.main" so you can just edit just that file.
Hello S,
Friday, December 16, 2005, 6:32:47 AM, you wrote:
SKC> Why not do this: name none of those modules Main.hs, and have an empty
SKC> module Main.hs with only "import MainDeJour" and "main =
SKC> MainDeJour.main" so you can just edit just that file.
ghc has option "-main-is" which is just
Scherrer, Chad wrote:
module Main where
import A
import B
main = A.f >> B.f
module A where
f = ...
module B where
f = ...
in a single file. This example is straight from chapter 5 of the Report,
and no mention is made (that I could find) about modules needing to be
in s
Scherrer, Chad writes:
> When I'm using ghci, I have lots of modules that I
> sometimes want to load "as Main", and sometimes I only
> want them loaded as a dependency from another module.
> Currently, I have to go into each file to change the
> "module Foo where" line to do this.
Maybe the
-Original Message-
From: S Koray Can [mailto:[EMAIL PROTECTED]
Why not do this: name none of those modules Main.hs, and have an empty
module Main.hs with only "import MainDeJour" and "main =
MainDeJour.main" so you can just edit just that file.
Cheers,
Koray
---