strict-containers-0.2.1: Strict containers.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Strict.HashMap.Autogen.Internal.Debug

Description

WARNING

This module is considered internal.

The Package Versioning Policy does not apply.

The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.

Authors importing this module are expected to track development closely.

Description

Debugging utilities for HashMaps.

Synopsis

Documentation

data Validity k Source #

Constructors

Invalid (Error k) SubHashPath 
Valid 

Instances

Instances details
Monoid (Validity k) Source # 
Instance details

Defined in Data.Strict.HashMap.Autogen.Internal.Debug

Methods

mempty :: Validity k #

mappend :: Validity k -> Validity k -> Validity k #

mconcat :: [Validity k] -> Validity k #

Semigroup (Validity k) Source # 
Instance details

Defined in Data.Strict.HashMap.Autogen.Internal.Debug

Methods

(<>) :: Validity k -> Validity k -> Validity k #

sconcat :: NonEmpty (Validity k) -> Validity k #

stimes :: Integral b => b -> Validity k -> Validity k #

Show k => Show (Validity k) Source # 
Instance details

Defined in Data.Strict.HashMap.Autogen.Internal.Debug

Methods

showsPrec :: Int -> Validity k -> ShowS #

show :: Validity k -> String #

showList :: [Validity k] -> ShowS #

Eq k => Eq (Validity k) Source # 
Instance details

Defined in Data.Strict.HashMap.Autogen.Internal.Debug

Methods

(==) :: Validity k -> Validity k -> Bool #

(/=) :: Validity k -> Validity k -> Bool #

data Error k Source #

An error corresponding to a broken invariant.

See HashMap for the documentation of the invariants.

Instances

Instances details
Show k => Show (Error k) Source # 
Instance details

Defined in Data.Strict.HashMap.Autogen.Internal.Debug

Methods

showsPrec :: Int -> Error k -> ShowS #

show :: Error k -> String #

showList :: [Error k] -> ShowS #

Eq k => Eq (Error k) Source # 
Instance details

Defined in Data.Strict.HashMap.Autogen.Internal.Debug

Methods

(==) :: Error k -> Error k -> Bool #

(/=) :: Error k -> Error k -> Bool #

type SubHash = Word Source #

A part of a Hash with bitsPerSubkey bits.