Agda-2.6.4.1: A dependently typed functional programming language and proof assistant
Safe HaskellNone
LanguageHaskell2010

Agda.Utils.Lens.Examples

Description

Examples how to use Agda.Utils.Lens.

Synopsis

Documentation

data Record a b Source #

Constructors

Record 

Fields

lensField1 :: forall a b f. Functor f => (a -> f a) -> Record a b -> f (Record a b) Source #

(View source:) This is how you implement a lens for a record field.

lensField2 :: forall a b f. Functor f => (b -> f b) -> Record a b -> f (Record a b) Source #