Moduleproto-lens-0.7.1.5Haskell2010
Data.ProtoLens.Field
An implementation of overloaded record fields. This module enables different types in the same module to have fields of the same name.
To use instances from this class, either:
Enable the
OverloadedLabelsextension andimport Data.ProtoLens.Labels ();Use the field function along with the
TypeApplicationsextension; or,Import the corresponding names from the autogenerated
*_Fieldsmodule.
For more information, see https://google.github.io/proto-lens/tutorial.html#field-overloading.
- 1 class
- 1 value
- Packageproto-lens-0.7.1.5
- Exports2
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceField.hs
A lens for a given field. For example:
view field@"abc" x
set field@"abc" 42 x