úÎ=t9·k(c) Milan Straka 2010 (c) Johan Tibell 2011 (c) Bryan O'Sullivan 2011, 2012 BSD-stylejohan.tibell@gmail.com provisionalportableNone 13;M2The class of types that can be generically hashed.9The 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 mustK 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 the same input by providing a different salt in each application of the method. This implies that any instance that defines  must0 make use of the salt in its implementation.Like 8, but no salt is used. The default implementation uses ” with some default salt. 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.vThis is a useful shorthand in cases where a type can easily be mapped to another type that is already an instance of  . Example: pdata Foo = Foo | Bar deriving (Enum) instance Hashable Foo where hashWithSalt = hashUsing fromEnum ŸA value with bit pattern (01)* (or 5* in hexa), for any size of Int. It is used as data constructor distinguisher. GHC computes its value during compilation. Compute the hash of a ThreadId. NCompute the hash of a TypeRep, in various GHC versions we can do this quickly.5Compute a hash value for the content of this pointer.MCompute a hash value for the content of this pointer, using an initial salt.³This function can for example be used to hash non-contiguous segments of memory as if they were one contiguous segment, by using the output of one hash as the salt for the next.-Compute a hash value for the content of this F, 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 segments of memory as if they were one contiguous segment, by using the output of one hash as the salt for the next. Combine two given hash values.  has zero as a left identity.6 Transformation function.Salt.Value to transform. pointer to the data to hashlength, in bytes hash valuepointer to the data to hashlength, in bytessalt hash value data to hashoffset, in byteslength, in bytes hash value data to hashoffset, in byteslength, in bytessalt hash value !"#$%&'()*+,-./01234567 3   !"#$%&'()*+,-./01234567(c) Bryan O'Sullivan 2012 BSD-stylebos@serpentine.com provisional GHC >= 7.2None24=JKM89:;<=>?@ABCDEFGH 89:;<=>?@ABCDEFGHk(c) Milan Straka 2010 (c) Johan Tibell 2011 (c) Bryan O'Sullivan 2011, 2012 BSD-stylejohan.tibell@gmail.com provisionalportable TrustworthyI      !"#$%&'()*+,-./0123456789:;<=>??@ABCDEFGHIJKLMNOhashable-1.2.3.1 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$fHashableShortByteString$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