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 :: 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 :: 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
Orphan instances
Semigroupoid (Lens Identity) Source # | |
Semigroupoid (Lens Maybe) Source # | |
Category (Lens Identity) Source # | |
Category (Lens Maybe) Source # | |
Impliable (P_Q_T ((->) :: Type -> Type -> Type) Store Identity source target :: Type) Source # | |
Impliable (P_Q_T ((->) :: Type -> Type -> Type) Store Maybe source target :: Type) Source # | |
Invariant (Flip (Lens available) tgt) Source # | |