define gcd 0 0 = 0 (Ticket #3304)

Henning Thielemann lemming at
Wed Jul 8 04:00:07 EDT 2009

On Tue, 7 Jul 2009, roconnor at wrote:

> As much as I'd love gcd 0 0 to be 0, the major problem is that this change 
> would contradict the Haskell 98 report.

There was a long thread about this issue some years ago that came to the 
conclusion that the current behaviour of gcd is algebraically most sound.

More information about the Libraries mailing list