pure-c / purec

C backend for PureScript
232 stars 8 forks source link

Move main function into `Effect Int` #50

Closed felixSchl closed 3 years ago

felixSchl commented 5 years ago

Either:

felixSchl commented 3 years ago

(3) has been implemented. Programs returning Unit return 0 and programs returning Int return the returned integer. Use --non-strict-main to avoid special handling altogether: the returned value is released and we return 0.