exinst-hashable-0.1.0.2: Derive instances for the `hashable` library for your existential types.

Safe HaskellNone
LanguageHaskell2010

Exinst.Instances.Hashable

Contents

Description

This module exports Hashable instances for Some1, Some2, Some3 and Some4 from Exinst.Singletons, provided situable Dict1, Dict2, Dict3 and Dict4 instances are available.

See the README file in the exinst package for more general documentation: https://hackage.haskell.org/package/exinst#readme

Orphan instances

(SingKind k1 (KProxy k1), Hashable (DemoteRep k1 (KProxy k1)), Dict1 k1 * Hashable f1) => Hashable (Some1 k1 f1) Source # 

Methods

hashWithSalt :: Int -> Some1 k1 f1 -> Int #

hash :: Some1 k1 f1 -> Int #

(SingKind k2 (KProxy k2), SingKind k1 (KProxy k1), Hashable (DemoteRep k2 (KProxy k2)), Hashable (DemoteRep k1 (KProxy k1)), Dict2 k1 k2 * Hashable f2) => Hashable (Some2 k1 k2 f2) Source # 

Methods

hashWithSalt :: Int -> Some2 k1 k2 f2 -> Int #

hash :: Some2 k1 k2 f2 -> Int #

(SingKind k3 (KProxy k3), SingKind k2 (KProxy k2), SingKind k1 (KProxy k1), Hashable (DemoteRep k3 (KProxy k3)), Hashable (DemoteRep k2 (KProxy k2)), Hashable (DemoteRep k1 (KProxy k1)), Dict3 k1 k2 k3 * Hashable f3) => Hashable (Some3 k1 k2 k3 f3) Source # 

Methods

hashWithSalt :: Int -> Some3 k1 k2 k3 f3 -> Int #

hash :: Some3 k1 k2 k3 f3 -> Int #

(SingKind k4 (KProxy k4), SingKind k3 (KProxy k3), SingKind k2 (KProxy k2), SingKind k1 (KProxy k1), Hashable (DemoteRep k4 (KProxy k4)), Hashable (DemoteRep k3 (KProxy k3)), Hashable (DemoteRep k2 (KProxy k2)), Hashable (DemoteRep k1 (KProxy k1)), Dict4 k1 k2 k3 k4 * Hashable f4) => Hashable (Some4 k1 k2 k3 k4 f4) Source # 

Methods

hashWithSalt :: Int -> Some4 k1 k2 k3 k4 f4 -> Int #

hash :: Some4 k1 k2 k3 k4 f4 -> Int #