Michael Weber writes (on the ghc-users list):
> I'm slightly puzzled about the definition of list enumerations in
> GHC (and possibly other Haskell implementations)...
>
> ``[0.0, 2 .. 9] :: [Float]''
> ==> [0.0, 2.0, 4.0, 6.0, 8.0, 10.0]
>
> Nevertheless, this behaviour is defined by the Haskell98 standard!
> (See ~ #3.10)
It seems that Hugs, ghc, and hbc all give the same wrong answer,
as mandated by the Haskell report. nhc98 alone gives the expected
answer of [0.0, 2.0, 4.0, 6.0, 8.0], but thereby breaks the standard.
So I echo the question:
> Can somebody please point me to the rationale behind the design
> decision?
Then either I must fix nhc98, or everyone else must fix ghc, Hugs,
hbc, etc.
Regards,
Malcolm