pandora-0.3.9: A box of patterns and paradigms
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pandora.Paradigm.Inventory.Optics

Synopsis

Documentation

type (:-.) src tgt = Lens src tgt infixr 0 Source #

type Lens src tgt = src :=> Store tgt Source #

type (:~.) src tgt = forall a. Lens (src a) (tgt a) infixr 0 Source #

(|>) :: Lens src tgt -> Lens tgt new -> Lens src new Source #

Lens composition infix operator

view :: Lens src tgt -> src -> tgt Source #

Get the target of a lens

set :: Lens src tgt -> tgt -> src -> src Source #

Replace the target of a lens

over :: Lens src tgt -> (tgt -> tgt) -> src -> src Source #

Modify the target of a lens

represent :: (Representable t, Setoid (Representation t)) => Representation t -> t a :-. a Source #

Representable based lens