Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- 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:
instanceHashable
MyType 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
)
(Representable a, GHashable (Rep a)) => RepGHashable a |