assoc-list-0.1.0.0: Association lists (lists of tuples)

Data.AssocList.List.Concept

Synopsis

# Association list type

type AssocList a b = [(a, b)] Source #

# Related modules

• Data.AssocList.List.Eq - Functions that involve Eq constraints on the keys
• Data.AssocList.List.Equivalence - Most of the same functions as the Eq module, but with an Equivalence parameter instead of an Eq constraint
• Data.AssocList.List.Predicate - Most of the same functions as the Eq module, but specifying keys using a Predicate rather than a particular key
• Data.AssocList.List.Ord - Functions that involve Ord constraints on the keys
• Data.AssocList.List.Comparison - The same functions as the Ord module, but with a Comparison parameter instead of an Ord constraint.

# Exception

This exception shows up when one attempts to retrieve a value by key from an association list using a partial function with a type signature such as

(!) :: Eq a => AssocList a b -> a -> b

but no result can be obtained because the requested key is not present exists in the mapping.

Constructors

 MissingAssocListKey
Instances
 Source # Instance detailsDefined in Data.AssocList.List.Concept Methods Source # Instance detailsDefined in Data.AssocList.List.Concept Methods Source # Instance detailsDefined in Data.AssocList.List.Concept Methods