Opened 13 years ago

Last modified 4 years ago

#121 new task

ExitCode consistency

Reported by: Ian Lynagh Owned by: none
Priority: normal Milestone:
Version: Keywords:
Cc: Meta Owner:
State: discussion Section: N/A or multiple
Related Tickets:


Haskell 98 says

Computation system cmd returns the exit code produced when the operating system processes the command cmd.


The exact interpretation of code is operating-system dependent.

However, on Unix systems system "exit 3" >>= print prints ExitFailure 3 under ghc and hugs, but ExitFailure 768 under nhc98, despite both being the same operating system.

It may not be possible to fix this within the boundaries of the report, but Something Must Be Done somewhere.

Additionally, the report says

The value exitFailure is equal to exitWith (ExitFailure exitfail), where exitfail is implementation-dependent.

while operating-system dependent seems better than implementation-dependent.

Change History (3)

comment:1 Changed 13 years ago by Ian Lynagh

component: HaskellPrimeProposal
Owner: changed from ijones to none

comment:2 Changed 4 years ago by Herbert Valerio Riedel


moving non-milestoned many year old legacy tickets out of the way

comment:3 Changed 4 years ago by Herbert Valerio Riedel

Priority: minornormal

Set default priority (as this confuses Trac otherwise)

Note: See TracTickets for help on using tickets.