Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.806 kb
/* -----------------------------------------------------------------------------
*
* (c) The GHC Team 2009
*
* The C main() function for a standalone Haskell program.
*
* Note that this is not part of the RTS. It calls into the RTS to get things
* going. It is compiled to a separate Main.o which is linked into every
* standalone Haskell program that uses a Haskell Main.main function
* (as opposed to a mixed Haskell C program using a C main function).
*
* ---------------------------------------------------------------------------*/
#include "PosixSource.h"
#include "Rts.h"
#include "RtsMain.h"
/* Similarly, we can refer to the ZCMain_main_closure here */
extern StgClosure ZCMain_main_closure;
int main(int argc, char *argv[])
{
return hs_main(argc, argv, &ZCMain_main_closure);
}
Jump to Line
Something went wrong with that request. Please try again.