arithmetic sequence discrepancy
GHC 8.6.5 understands [0.0,-1.0,-1.5]
to mean [0.0,-1.0,-2.0]
Haskell 2010 Report, section 6.3.4, next-to-last paragraph says, "For Float
and Double
, the semantics of the enumFrom
family is given by the rules for Int
above, except that the list terminates when the elements become greater than e3 + i∕2
for positive increment i
, or when they become less than e3 + i∕2
for negative i
."
According to the spec, the answer should be [0.0,-1.0]
. Either GHC or the Report is wrong.
Observed in GHC 8.6.5