Write a part of the state.
ModuleAgda-2.7.0.1Haskell2010
Agda.Utils.Lens
A cut-down implementation of lenses, with names taken from Edward Kmett's lens package.
- 4 types
- 19 values
- PackageAgda-2.7.0.1
- Exports23
- LanguageHaskell2010
- LicenceMIT
- SourceLens.hs
Set inner part i of structure o as designated by Lens' o i.
Van Laarhoven style homogeneous lenses. Mnemoic: "Lens outer inner", same type argument order as 'get :: o -> i'.
Get inner part i of structure o as designated by Lens' o i.
Modify inner part i of structure o using a function i -> i.
Access a map value at a given key.
Build a lens out of an isomorphism.
Focus on a part of the state for a stateful computation.
Read a part of the state.
Modify a part of the state.
Modify a part of the state monadically.
Modify a part of the state monadically, and return some result.
Modify a part of the state locally.
Ask for part of read-only state.
Modify a part of the state in a subcomputation.
Focus on given element in a set.