strive-0.6.1: A Haskell client for the Strava V3 API.

Safe HaskellSafe-Inferred

Strive.Lenses

Description

Lenses for easily getting and setting values.

Synopsis

Documentation

type Lens a b = Functor f => (b -> f b) -> a -> f aSource

A lens for a record.

get :: Lens a b -> a -> bSource

Get a field from a record.

set :: Lens a b -> b -> a -> aSource

Set a field in a record.

update :: Lens a b -> (b -> b) -> a -> aSource

Update a field in a record