It's a bug, which is fixed in 4.04 (a Win32
version of which is due out shortly.)

--sigbjorn

Alex Ferguson <[EMAIL PROTECTED]> writes:
> 
> Observe:
> 
> 
> BASH.EXE-2.02$ cat Enum.hs
> 
> enumerate :: (Enum a, Bounded a) => [a]
> enumerate = [minBound .. maxBound]
> 
> data Test = Foo | Bar | Blah | Nonsense
>             deriving (Show, Enum, Bounded)
> 
> main = print (enumerate :: [Test])
> BASH.EXE-2.02$ ghc-4.03 -static Enum.o
> BASH.EXE-2.02$ ./a.exe
> [Foo,Foo,Foo,Foo]
> 
> 
> Whereas, with ghc-4.02, under Solaris 2.5:
> 
> yeats.ucc.ie:~/LVO: a.out
> [Foo,Bar,Blah,Nonsense]
> 
> 
> What, as they say, gives?
> 
> Cheers,
> Alex.
> 

Reply via email to