[Haskell-cafe] How does the RTS "know" about ExitCode

Georgi Lyubenov godzbanebane at gmail.com
Wed Jul 15 12:05:19 UTC 2020


Hi!

I'm wondering how values stored in ExitCode "get to" the RTS (i.e. actually
make the program exit with the given number).

As far as I can tell ExitCode is used as an everyday normal-looking
exception (which are defined entirely in "library code", by using
the raise#/catch# primitives), without any direct link to the RTS.

What am I missing?

======
Georgi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20200715/e324fa2e/attachment.html>


More information about the Haskell-Cafe mailing list