proto-lens-0.7.1.5: A lens-based implementation of protocol buffers in Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.ProtoLens.Labels

Description

This module provides OverloadedLabels IsLabel support via an orphan instance. This means a Lens.Family.Lens can be referenced as #foo whenever we have an instance of HasField with the label "foo"."

To use these labels, enable the OverloadedLabels extension, and then import:

import Data.ProtoLens.Labels()

Orphan instances

(HasField s x a, p ~ (a -> f a), q ~ (s -> f s), Functor f, a ~ b) => IsLabel x (p -> q) Source # 
Instance details

Methods

fromLabel :: p -> q #