RE: -no-hs-main behaviour

On Tue, Dec 10, 2002 at 10:35:22AM -0000, Simon Marlow wrote:
Even if you do need to use --make or GHCi, then I think you can still specify all the source files on the command line.
While on the subject of GHC's build options, can we change the behaviour of -no-hs-main when it's used with --make?
Currently, if you use --make and GHC finds a main function, it will attempt to link all the modules together to produce an executable -- even if you specify -no-hs-main.
Is it possible to modify the behaviour so that if --make -no-hs-main is specified, GHC won't perform the link if it finds a main function?
I think we should probably just have a -no-link option rather than overload the behaviour of the -no-hs-main option. Cheers, Simon

On Wed, Dec 11, 2002 at 12:05:29PM -0000, Simon Marlow wrote:
Is it possible to modify the behaviour so that if --make -no-hs-main is specified, GHC won't perform the link if it finds a main function?
I think we should probably just have a -no-link option rather than overload the behaviour of the -no-hs-main option.
That'd be great if -no-link can be added; thanks Simon.
--
#ozone/algorithm
participants (2)
-
Andre Pang
-
Simon Marlow