Handling overflow and division by zero
nikita at karetnikov.org
Sat Jul 25 17:46:46 UTC 2015
> I'm no expert on arithmetic, but I'd have thought that a well-designed
> and well-documented plan for handling arithmetic exceptions (as
> values) would be good.
> Start a wiki page on the GHC Trac!
> Are there primops for Int, so the only issue is making ones for other types?
I've just put my notes here:
Let me know if this page doesn't answer your question.
Do I need to create a ticket, too? In the testsuite, primops live
in files like this: testsuite/tests/primops/should_run/T7689.hs
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 818 bytes
Desc: not available
More information about the ghc-devs