hashable-extras-0.2.2: Higher-rank Hashable

Copyright(c) Edward Kmett 2013
LicenseBSD3
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellTrustworthy
LanguageHaskell98

Data.Hashable.Extras

Description

 

Synopsis

Documentation

class Hashable1 t where Source

Minimal complete definition

Nothing

Methods

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

hash1 :: Hashable a => t a -> Int Source

class Hashable2 t where Source

Minimal complete definition

Nothing

Methods

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

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

Instances

data Hashed Source

Constructors

Hashed 

Fields

unhashed :: Int -> Int
 

Instances

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

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

salt :: Int Source

Extract the default salt used by Hashable