Safe Haskell | None |
---|---|
Language | Haskell2010 |
Examples how to use Agda.Utils.Lens.
Synopsis
- data Record a b = Record {}
- lensField1 :: forall a b f. Functor f => (a -> f a) -> Record a b -> f (Record a b)
- lensField2 :: forall a b f. Functor f => (b -> f b) -> Record a b -> f (Record a b)
Documentation
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 #