pandora-0.4.1: 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 = PQ_ (->) Store Source #

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

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

Orphan instances

Category Lens Source # 
Instance details

Methods

identity :: Lens a a Source #

(.) :: Lens b c -> Lens a b -> Lens a c Source #

($) :: Lens (Lens a b) (Lens a b) Source #

(#) :: Lens (Lens a b) (Lens a b) Source #