hashable-extras-0.1.0.1: Higher-rank Hashable

Portabilitynon-portable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellNone

Data.Hashable.Extras

Description

 

Synopsis

Documentation

class Hashable1 t whereSource

Methods

hashWithSalt1 :: Hashable a => Int -> t a -> IntSource

hash1 :: Hashable a => t a -> IntSource

class Hashable2 t whereSource

Methods

hashWithSalt2 :: (Hashable a, Hashable b) => Int -> t a b -> IntSource

hash2 :: (Hashable a, Hashable b) => t a b -> IntSource

Instances

data Hashed Source

Constructors

Hashed 

Fields

unhashed :: Int -> Int
 

Instances

hashWith1 :: (Functor t, Hashable1 t) => (Int -> a -> Int) -> Int -> t a -> IntSource

hashWith2 :: (Bifunctor t, Hashable2 t) => (Int -> a -> Int) -> (Int -> b -> Int) -> Int -> t a b -> IntSource

salt :: IntSource

Extract the default salt used by Hashable