
17 Nov
2009
17 Nov
'09
3:21 p.m.
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.