Strive.Lenses
Description
Lenses for easily getting and setting values.
type Lens a b = forall f. Functor f => (b -> f b) -> a -> f a Source #
A lens for a record.
get :: Lens a b -> a -> b Source #
Get a field from a record.
set :: Lens a b -> b -> a -> a Source #
Set a field in a record.
update :: Lens a b -> (b -> b) -> a -> a Source #
Update a field in a record