| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Generics.Instant.Functions.Hashable
Contents
- ghashWithSaltDefault :: (Representable a, GHashable (Rep a)) => Int -> a -> Int
- class (Representable a, GHashable (Rep a)) => RepGHashable a
- class GHashable a where
- ghashWithSalt :: Int -> a -> Int
Documentation
You can use ghashWithSaltDefault as your generic hashWithSalt for any
Representable type as follows:
instanceHashableMyType where hashWithSalt =ghashWithSaltDefault
ghashWithSaltDefault :: (Representable a, GHashable (Rep a)) => Int -> a -> Int Source
class (Representable a, GHashable (Rep a)) => RepGHashable a Source
is simply a synonym for
RepGHashable( with the convenient
kind Representable a, GHashable (Rep a))(* -> Constraint)
Instances
| (Representable a, GHashable (Rep a)) => RepGHashable a |