[[project @ 2003-10-29 19:05:55 by simonpj] simonpj**20031029190556 Add info about compiling the Main module ] { addfile ./ghc/docs/comm/the-beast/main.html hunk ./ghc/docs/comm/index.html 77 +
  • Compiling and running the Main module hunk ./ghc/docs/comm/the-beast/main.html 1 + + + + + The GHC Commentary - Compiling and running the Main module + + + +

    Compiling and running the Main module

    + +GHC allows you to determine which module contains the "main" function, and +what that function is called, via the -fmain-is flag. The trouble is +that the runtime system is fixed, so what symbol should it link to? +

    +The current solution is this. Suppose the main function is Foo.run. +

    + + + }