| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.AssocList.ListLike.Concept
Synopsis
- type AssocList l a b = ListLike l (a, b)
- data MissingAssocListKey = MissingAssocListKey
Association list type
Related modules
- Data.AssocList.ListLike.Eq - Functions that involve
Eqconstraints on the keys - Data.AssocList.ListLike.Equivalence - Most of the same functions
as the
Eqmodule, but with anEquivalenceparameter instead of anEqconstraint - Data.AssocList.ListLike.Predicate - Most of the same functions as
the
Eqmodule, but specifying keys using aPredicaterather than a particular key - Data.AssocList.ListLike.Ord - Functions that involve
Ordconstraints on the keys - Data.AssocList.ListLike.Comparison - The same functions as the
Ordmodule, but with aComparisonparameter instead of anOrdconstraint.
Exception
data MissingAssocListKey Source #
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
(!) :: (LikeLike l (a, b), Eq a) => l -> a -> b
but no result can be obtained because the requested key is not present exists in the mapping.
Constructors
| MissingAssocListKey |
Instances
| Eq MissingAssocListKey Source # | |
Defined in Data.AssocList.ListLike.Concept Methods (==) :: MissingAssocListKey -> MissingAssocListKey -> Bool # (/=) :: MissingAssocListKey -> MissingAssocListKey -> Bool # | |
| Show MissingAssocListKey Source # | |
Defined in Data.AssocList.ListLike.Concept Methods showsPrec :: Int -> MissingAssocListKey -> ShowS # show :: MissingAssocListKey -> String # showList :: [MissingAssocListKey] -> ShowS # | |
| Exception MissingAssocListKey Source # | |
Defined in Data.AssocList.ListLike.Concept Methods toException :: MissingAssocListKey -> SomeException # fromException :: SomeException -> Maybe MissingAssocListKey # | |