strive-0.5.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 = a -> (b, b -> a)Source

A lens for a record, returning a field and a residue.

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

Get a field from a record using a lens.

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

Set a field in a record using a lens.