Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.ProtoLens.Field
Description
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
OverloadedLabels
extension andimport Data.ProtoLens.Labels ()
; - Use the
field
function along with theTypeApplications
extension; or, - Import the corresponding names from the autogenerated
*_Fields
module.
For more information, see https://google.github.io/proto-lens/tutorial.html#field-overloading.