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.
- Re: ghc-4.03 on cynwin deriving oddity. Alex Ferguson
- Re: ghc-4.03 on cynwin deriving oddity. Alex Ferguson
- RE: ghc-4.03 on cynwin deriving oddity. Sigbjorn Finne (Intl Vendor)
- RE: ghc-4.03 on cynwin deriving oddity. Alex Ferguson
