enumeration oddity

Doug McIlroy <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
Though I'm abusing enumerations, I'm surprised that a and b
give different answers (in Hugs 1.4 on Linux).  Is that intended?

       default (Integer,Rational)
       a = take 3 [1/1,3/2 .. 2/1]     -- [1%1,3%2,2%1]
       b = take 3 [1/1,3/2 ..]         -- [1%1,1%1,1%1]

Doug McIlroy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.