Handling overflow and division by zero
Nikita Karetnikov
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:
https://ghc.haskell.org/trac/ghc/wiki/ImprovedArithmeticPrimops
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...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20150725/b028fc6c/attachment.sig>
More information about the ghc-devs
mailing list