úÎ9’5âportable provisionaljohan.tibell@gmail.comNone3The class of types that can be generically hashed. :The class of types that can be converted to a hash value. Minimal implementation: . <Return a hash value for the argument, using the given salt. The general contract of  is: * If two values are equal according to the   method, then  applying the " method on each of the two values  must5 produce the same integer result if the same salt is  used in each case.  It is not) required that if two values are unequal  according to the   method, then applying the  / method on each of the two values must produce @ distinct integer results. However, the programmer should be > aware that producing distinct integer results for unequal = values may improve the performance of hashing-based data  structures. > This method can be used to compute different hash values for 9 the same input by providing a different salt in each > application of the method. This implies that any instance  that defines  must make use of the salt in  its implementation. Like #, but no salt is used. The default  implementation uses  with some default salt. A Instances might want to implement this method to provide a more ; efficient implementation than the default implementation. -A default salt used in the implementation of . Transform a value into a  value, then hash the ) transformed value using the given salt. ?This is a useful shorthand in cases where a type can easily be 7 mapped to another type that is already an instance of .  Example:  data Foo = Foo | Bar  deriving (Enum)   instance Hashable Foo where ' hashWithSalt = hashUsing fromEnum EA value with bit pattern (01)* (or 5* in hexa), for any size of Int. M It is used as data constructor distinguisher. GHC computes its value during  compilation.  Compute the hash of a ThreadId. OCompute the hash of a TypeRep, in various GHC versions we can do this quickly. 6Compute a hash value for the content of this pointer. ?Compute a hash value for the content of this pointer, using an  initial salt. =This function can for example be used to hash non-contiguous E segments of memory as if they were one contiguous segment, by using 2 the output of one hash as the salt for the next. -Compute a hash value for the content of this , E beginning at the specified offset, using specified number of bytes. -Compute a hash value for the content of this , using  an initial salt. =This function can for example be used to hash non-contiguous E segments of memory as if they were one contiguous segment, by using 2 the output of one hash as the salt for the next.  Combine two given hash values.  has zero as a left  identity. 5 Transformation function. Salt. Value to transform. pointer to the data to hash length, in bytes  hash value pointer to the data to hash length, in bytes salt  hash value  data to hash offset, in bytes length, in bytes  hash value  data to hash offset, in bytes length, in bytes salt  hash value  !"#$%&'()*+,-./0123456 2   !"#$%&'()*+,-./0123456 GHC >= 7.2 provisionalbos@serpentine.comNone789:;<=>?@ABCDEFG 789:;<=>?@ABCDEFGportable provisionaljohan.tibell@gmail.com TrustworthyH      !"#$%&'()*+,-./0123456789:;<=>>?@ABCDEFGHIJKLMNhashable-1.2.1.0 Data.HashableData.Hashable.ClassData.Hashable.GenericHashable hashWithSalthash hashUsinghashPtrhashPtrWithSalt hashByteArrayhashByteArrayWithSalt GHashableghc-prim GHC.Classes== defaultSalt distinguisher hashThreadId hashTypeRepGHC.Prim ByteArray#combine ghashWithSaltc_hashByteArray c_hashCString getThreadIddefaultHashWithSalt$fHashableTypeRep$fHashableThreadId$fHashableText$fHashableText0$fHashableByteString$fHashableByteString0 $fHashable[]$fHashableStableName$fHashable(,,,,,,)$fHashable(,,,,,)$fHashable(,,,,)$fHashable(,,,)$fHashable(,,) $fHashable(,)$fHashableEither$fHashableMaybe$fHashableDouble$fHashableFloat$fHashableRatio$fHashableInteger$fHashableChar$fHashableOrdering$fHashableBool $fHashable()$fHashableWord64$fHashableWord32$fHashableWord16$fHashableWord8$fHashableWord$fHashableInt64$fHashableInt32$fHashableInt16$fHashableInt8 $fHashableIntTaggedunTaggedSumSizesumSizeGSumhashSum $fSumSizeM1 $fSumSize:+:$fGSumM1 $fGSum:+:$fGHashable:+: $fGHashableK1 $fGHashableM1$fGHashable:*: $fGHashableU1 $fGHashableV1