references-0.2.1.2: Generalization of lenses, folds and traversals to handle monads and addition.

Safe HaskellNone
LanguageHaskell98

Control.Reference.Predefined.Containers

Synopsis

Documentation

class Association e where Source

Lenses for given values in a data structure that is indexed by keys.

Associated Types

type AssocIndex e :: * Source

type AssocElem e :: * Source

Instances

class Association e => Mapping e where Source

Methods

at :: AssocIndex e -> Simple Lens e (Maybe (AssocElem e)) Source

Instances

Mapping (IntMap v) 
Eq a => Mapping (a -> Maybe b) 
Ord k => Mapping (Map k v) 

class SetLike e where Source

Containers that can be used as a set, inserting and removing elements

Associated Types

type SetElem e :: * Source

Instances