On 02-May-2001, Matt Harden
Matt Harden wrote:
blah, blah, blah, bug in the Library Report, blah, blah...
OK, so I failed to read the Library Report. It clearly states:
An implementation is entitled to assume the following laws about these operations:
range (l,u) !! index (l,u) i == i -- when i is in range inRange (l,u) i == i `elem` range (l,u)
So my "bug" is only in my mind. Sorry for bothering everyone.
I don't think it's quite as straight-forward as that.
Hugs and ghc may conform to the Library Report, but the
behaviour is still undesirable, and IMHO should be fixed.
--
Fergus Henderson