strive-6.0.0.13: A client for the Strava V3 API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Strive.Lenses

Description

Lenses for easily getting and setting values.

Synopsis

Documentation

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