[Haskell-cafe] Simple hash table creation
Daniel Fischer
daniel.is.fischer at web.de
Tue Nov 17 15:21:18 EST 2009
Am Dienstag 17 November 2009 21:09:26 schrieb michael rice:
> What is GHC.Int.Int32? Can't find it on Hoogle.
Int32 is the guaranteed-to-be-32-bits integer type, it's defined in the module GHC.Int,
typically it's imported via Data.Int (because, naturally, using GHC's own modules isn't
portable).
Due to the way ghci's :type command works, such types are printed qualified.
The hash function must have a return type of fixed and specified width, or porting the app
between 32-bit and 64-bit platforms could have enormous performance impact, so it can't be
plain Int.
More information about the Haskell-Cafe
mailing list