Handling overflow and division by zero

Simon Peyton Jones simonpj at microsoft.com
Mon Jul 27 08:11:26 UTC 2015

|  Do I need to create a ticket, too?  

Yes, it's always a good idea to create a ticket to 
 say what you are doing
 track progress
 give an opportunity for others to comment


|  -----Original Message-----
|  From: Nikita Karetnikov [mailto:nikita at karetnikov.org]
|  Sent: 25 July 2015 18:47
|  To: Simon Peyton Jones
|  Cc: ghc-devs at haskell.org
|  Subject: Re: Handling overflow and division by zero
|  > 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

More information about the ghc-devs mailing list