data-lens-2.10.5: Used to be Haskell 98 Lenses

Safe HaskellSafe-Inferred

Data.Lens.Lazy

Contents

Synopsis

Documentation

State API

access :: Monad m => Lens a b -> StateT a m bSource

get the value of a lens into state

(~=) :: Monad m => Lens a b -> b -> StateT a m bSource

set a value using a lens into state

(!=) :: Monad m => Lens a b -> b -> StateT a m bSource

set a value using a lens into state

(%=) :: Monad m => Lens a b -> (b -> b) -> StateT a m bSource

infix modification a value through a lens into state

(!%=) :: Monad m => Lens a b -> (b -> b) -> StateT a m bSource

infix modification a value through a lens into state

(%%=) :: Monad m => Lens a b -> (b -> (c, b)) -> StateT a m cSource

infix modification of a value through a lens into state with a supplemental response

(!%%=) :: Monad m => Lens a b -> (b -> (c, b)) -> StateT a m cSource

infix modification of a value through a lens into state with a supplemental response

(+=) :: (Monad m, Num b) => Lens a b -> b -> StateT a m bSource

(!+=) :: (Monad m, Num b) => Lens a b -> b -> StateT a m bSource

(-=) :: (Monad m, Num b) => Lens a b -> b -> StateT a m bSource

(!-=) :: (Monad m, Num b) => Lens a b -> b -> StateT a m bSource

(*=) :: (Monad m, Num b) => Lens a b -> b -> StateT a m bSource

(!*=) :: (Monad m, Num b) => Lens a b -> b -> StateT a m bSource

(//=) :: (Monad m, Fractional b) => Lens a b -> b -> StateT a m bSource

(!/=) :: (Monad m, Fractional b) => Lens a b -> b -> StateT a m bSource

(&&=) :: Monad m => Lens a Bool -> Bool -> StateT a m BoolSource

(!&&=) :: Monad m => Lens a Bool -> Bool -> StateT a m BoolSource

(||=) :: Monad m => Lens a Bool -> Bool -> StateT a m BoolSource

(!||=) :: Monad m => Lens a Bool -> Bool -> StateT a m BoolSource

focus :: Monad m => Lens a b -> StateT b m c -> StateT a m cSource