enumeration oddity

Ross Paterson ross@soi.city.ac.uk
Tue, 2 Sep 2003 14:28:07 +0100


On Tue, Sep 02, 2003 at 09:07:31AM -0400, Doug McIlroy wrote:
> 
> 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]

If you use the November 2002 release, with the +N option, this is gone.