recip incorrect for 0 % 1

Sigbjorn Finne sof@galconn.com
Wed, 14 Nov 2001 10:34:17 -0800


Thanks, now fixed (another Haskell 1.3 defn).

--sigbjorn

----- Original Message ----- 
From: "Ian Lynagh" <igloo@earth.li>
To: <hugs-bugs@haskell.org>
Sent: Sunday, November 11, 2001 12:50
Subject: recip incorrect for 0 % 1


> 
> Hi guys,
> 
> hugs has
> 
> recip (x:%y)        = if x < 0 then (-y) :% (-x) else y :% x
> 
> which is not correct when x == 0.
> 
> 
> Thanks
> Ian
>