Both GHC and Hugs have a bug in their Prelude for Ratio's Enum
instance. The following program

   import Ratio
   main = print [ 1, 4%(3::Int) .. 2 ]

should print

   [1 % 1,4 % 3,5 % 3,2 % 1]

but instead an infinite list of 1%1s is generated. The reason for this
is that the default method for enumFromThenTo is used, which truncates
4%3 to 1 (same for enumFromTo). 

Cheers,
   Sven
-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne

Reply via email to