> 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
signature.asc
Description: PGP signature
_______________________________________________ ghc-devs mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
