-no-hs-main behaviour

Simon Marlow simonmar@microsoft.com
Wed, 11 Dec 2002 12:05:29 -0000

> 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=20
> can still
> > specify all the source files on the command line. =20
> 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.