Data.HashTable.hashInt seems somewhat sub-optimal
Ian Lynagh
igloo at earth.li
Tue Aug 21 10:03:38 EDT 2007
On Mon, Aug 20, 2007 at 02:49:59PM +0100, Simon Marlow wrote:
> Simon.Frankau at barclayscapital.com wrote:
> >I tried submitting this bug through the tracker, but it seemed to give
> >me permissions errors - probably a firewall issue here. :( Apologies.
> >Anyway...
> >
> >Prelude> Data.HashTable.hashInt 0
> >0
> >Prelude> Data.HashTable.hashInt 1
> >-1
> >Prelude> Data.HashTable.hashInt 2
> >-1
>
> FYI, this was a bug that has since been fixed.
It doesn't look fixed to me. Are you confusing it with
http://hackage.haskell.org/trac/ghc/ticket/1137
(poor hashString results)?
Thanks
Ian
More information about the Glasgow-haskell-bugs
mailing list