Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Lens = P_Q_T (->) Store
- type family Convex lens where ...
- type family Obscure lens where ...
- type (#=@) source target available = forall a. Lens available (source a) (target a)
- view :: Lens available source target -> source -> available target
- set :: Lens available source target -> available target -> source -> source
- over :: Covariant available => Lens available source target -> (available target -> available target) -> source -> source
- represent :: forall t a. (Representable t, Setoid (Representation t)) => Representation t -> Convex Lens (t a) a
Documentation
type (#=@) source target available = forall a. Lens available (source a) (target a) infixl 2 Source #
over :: Covariant available => Lens available source target -> (available target -> available target) -> source -> source Source #
Modify focused target value
represent :: forall t a. (Representable t, Setoid (Representation t)) => Representation t -> Convex Lens (t a) a Source #
Representable based lens