main modules in GHC

Graham Klyne gk@ninebynine.org
Mon, 23 Jun 2003 12:02:35 +0100


At 11:37 23/06/03 +0100, Simon Peyton-Jones wrote:
>The question of conveniently naming a function to use as the 'main'
>function has come before.
>I've implemented a -main-is flag for GHC, so you can nominate either the
>module containing the main function, or the main function name, or both.

That sounds most helpful, thank you.

(For me, nominating the module is enough.)

>The change is in the repository, and it's documented in the manual.   I
>hope this'll help the test-suite folk.

I take it that's not yet a released compiler version?  (I'm currently using 
5.4.03, and expect to upgrade at some time after the generics support is 
felt to be reasonably stable and also supported by Hugs.)

#g


-------------------
Graham Klyne
<GK@NineByNine.org>
PGP: 0FAA 69FF C083 000B A2E9  A131 01B9 1C7A DBCA CB5E