Data.HashTable.hashInt seems somewhat sub-optimal

Simon Marlow simonmarhaskell at gmail.com
Wed Aug 22 04:10:00 EDT 2007


Ian Lynagh wrote:
> 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)?

Indeed I am, sorry about that!

Simon


More information about the Glasgow-haskell-bugs mailing list