On Nov 16, 2007 2:12 PM, Neil Mitchell [EMAIL PROTECTED] wrote:
Under Hugs and Yhc, showing a Ratio 1%2 gives 1 % 2. Under GHC
showing 1%2 gives 1%2. Does the standard say anything about this? Is
someone wrong? And how do Yhc/nhc/Hugs pass Bernouilli in the Nofib
suite given that the output
Neil Mitchell wrote:
Hi
Under Hugs and Yhc, showing a Ratio 1%2 gives 1 % 2. Under GHC
showing 1%2 gives 1%2. Does the standard say anything about this? Is
someone wrong?
Yes, ghc is wrong here, the Haskell 98 report [1] specifies:
instance (Integral a) = Show (Ratio a) where