lens-labels-0.2.0.1: Integration of lenses with OverloadedLabels.

Safe HaskellNone
LanguageHaskell2010

Lens.Labels.Unwrapped

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 Lens.Labels.HasLens with the label "foo"."

This can eliminate the need to call runLens when working with libraries like lens, microlens, or lens-family.

Documentation

Orphan instances

IsLabel x (LensFn p q) => IsLabel x (p -> q) Source # 

Methods

fromLabel :: p -> q #