Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
hashWithSalt :: Hashable a => Int -> a -> Inthashable Data.Hashable Return a hash value for the argument, using the given salt. The general contract of hashWithSalt is:
- If two values are equal according to the == method, then applying the hashWithSalt method on each of the two values must 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 hashWithSalt 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 hashWithSalt must make use of the salt in its implementation.
- hashWithSalt may return negative Int values.
defaultHashWithSalt :: Hashable a => Int -> a -> Inthashable Data.Hashable Since we support a generic implementation of hashWithSalt we cannot also provide a default implementation for that method for the non-generic instance use case. Instead we provide defaultHashWith.
hashWithSalt :: Hashable a => Int -> a -> Intgogol-core Gogol.Prelude Return a hash value for the argument, using the given salt. The general contract of hashWithSalt is:
- If two values are equal according to the == method, then applying the hashWithSalt method on each of the two values must 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 hashWithSalt 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 hashWithSalt must make use of the salt in its implementation.
- hashWithSalt may return negative Int values.
hashWithSalt :: Hashable a => Int -> a -> Intrelude Relude.Container.Reexport Return a hash value for the argument, using the given salt. The general contract of hashWithSalt is:
- If two values are equal according to the == method, then applying the hashWithSalt method on each of the two values must 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 hashWithSalt 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 hashWithSalt must make use of the salt in its implementation.
- hashWithSalt may return negative Int values.
hashWithSalt :: Hashable a => Int -> a -> Intprotolude Protolude Return a hash value for the argument, using the given salt. The general contract of hashWithSalt is:
- If two values are equal according to the == method, then applying the hashWithSalt method on each of the two values must 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 hashWithSalt 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 hashWithSalt must make use of the salt in its implementation.
- hashWithSalt may return negative Int values.
hashWithSalt :: Hashable a => Int -> a -> Intparameterized-utils Data.Parameterized.Classes Return a hash value for the argument, using the given salt. The general contract of hashWithSalt is:
- If two values are equal according to the == method, then applying the hashWithSalt method on each of the two values must 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 hashWithSalt 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 hashWithSalt must make use of the salt in its implementation.
- hashWithSalt may return negative Int values.
hashWithSalt :: Hashable a => Int -> a -> Intshake Development.Shake.Classes Return a hash value for the argument, using the given salt. The general contract of hashWithSalt is:
- If two values are equal according to the == method, then applying the hashWithSalt method on each of the two values must 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 hashWithSalt 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 hashWithSalt must make use of the salt in its implementation.
- hashWithSalt may return negative Int values.
hashWithSalt :: Hashable a => Int -> a -> Intbasic-prelude CorePrelude Return a hash value for the argument, using the given salt. The general contract of hashWithSalt is:
- If two values are equal according to the == method, then applying the hashWithSalt method on each of the two values must 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 hashWithSalt 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 hashWithSalt must make use of the salt in its implementation.
- hashWithSalt may return negative Int values.
hashWithSalt :: Hashable a => Int -> a -> Intclassy-prelude ClassyPrelude Return a hash value for the argument, using the given salt. The general contract of hashWithSalt is:
- If two values are equal according to the == method, then applying the hashWithSalt method on each of the two values must 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 hashWithSalt 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 hashWithSalt must make use of the salt in its implementation.
- hashWithSalt may return negative Int values.
hashWithSalt :: Hashable a => Int -> a -> Intgithub GitHub.Internal.Prelude Return a hash value for the argument, using the given salt. The general contract of hashWithSalt is:
- If two values are equal according to the == method, then applying the hashWithSalt method on each of the two values must 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 hashWithSalt 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 hashWithSalt must make use of the salt in its implementation.
- hashWithSalt may return negative Int values.