[EMAIL PROTECTED] wrote:

> 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.

By definition, if you follow the standard you can't be wrong. :)
But the standard can be wrong.  Perhaps this is a typo in the report?

--

        -- Lennart




Reply via email to