Implement "Meaningful main return types" proposal
The GHC Steering Committee has accepted the proposal "Meaningful main return types", which introduces:
- a new extension
MeaningfulMainReturnunder whichmainis required to have a typeIO (),IO VoidorIO ExitCode, with the latter arranging to return theExitCodeon program termination; and - a new on-by-default warning
-Wambiguous-main-returnwhich will complain ifmainhas a type other thanIO ()orIO Void(andMeaningfulMainReturnis not in effect).
Edited by Adam Gundry