quickcheck-state-machine-0.0.0: Test monadic programs using state machine based models

Copyright(C) 2017 ATS Advanced Telematic Systems GmbH
LicenseBSD-style (see the file LICENSE)
MaintainerStevan Andjelkovic <stevan@advancedtelematic.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Test.StateMachine.Internal.IxMap

Description

This module provides indexed maps. These are used to implement support for multiple references.

Synopsis

Documentation

data IxMap ix k vs Source #

An ix-indexed family of maps.

empty :: IxMap i k vs Source #

The empty map.

(!) :: Ord k => IxMap ix k vs -> (Sing i, k) -> vs @@ i Source #

Partial lookup function.

lookup :: Ord k => Sing i -> k -> IxMap ix k vs -> Maybe (vs @@ i) Source #

Total version of the above.

member :: Ord k => Sing (i :: ix) -> k -> IxMap ix k vs -> Bool Source #

Key membership check.

insert :: (Ord k, SDecide ix) => Sing i -> k -> (vs @@ i) -> IxMap ix k vs -> IxMap ix k vs Source #

Map insertion.

size :: Sing (i :: ix) -> IxMap ix k vs -> Int Source #

Size of the key set.