proto-lens-0.7.0.0: A lens-based implementation of protocol buffers in Haskell.

Safe HaskellNone
LanguageHaskell2010

Data.ProtoLens.Labels

Contents

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 #