monoidmap-hashable
Copyright© 2025–2026 Jonathan Knowles
LicenseApache-2.0
Safe HaskellNone
LanguageHaskell2010

Data.MonoidMap.Hashable

Description

 
Synopsis

    Introduction

    This module provides a Hashable instance for MonoidMap.

    This instance behaves identically to the Hashable instance for Map, satisfying the following the laws:

    hash           == hash           . MonoidMap.toMap
    hashWithSalt i == hashWithSalt i . MonoidMap.toMap
    

    Orphan instances

    (Hashable k, Hashable v) => Hashable (MonoidMap k v) Source # 
    Instance details

    Methods

    hashWithSalt :: Int -> MonoidMap k v -> Int #

    hash :: MonoidMap k v -> Int #