Changes between Initial Version and Version 13 of Ticket #1920


Ignore:
Timestamp:
Nov 28, 2007 12:47:38 PM (8 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1920

    • Property Cc ndmitchell@… added
    • Property Difficulty changed from to Unknown
    • Property Owner set to simonmar
    • Property Milestone changed from to 6.8 branch
  • Ticket #1920 – Description

    initial v13  
     1{{{
    12GHCi> :m Data.Ratio
    23GHCi> show (1%2)
     
    67Hugs> show (1%2)
    78"1 % 2"
     9}}}
    810
    911The Haskell report specifies (http://haskell.org/onlinereport/ratio.html):
    1012
     13{{{
    1114instance  (Integral a)  => Show (Ratio a)  where
    1215    showsPrec p (x:%y)  =  showParen (p > ratPrec)
     
    1417                                showString " % " .
    1518                                showsPrec (ratPrec+1) y)
     19}}}
    1620
    1721This effects the nofib suite, where the expected.stdout files are based on GHC's incorrect Ratio implementation.