lens-4.13.2: Lenses, Folds and Traversals

Copyright(C) 2014-2016 Edward Kmett, (C) 2014 Eric Mertens
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellTrustworthy
LanguageHaskell98

Control.Lens.Internal.FieldTH

Description

 

Synopsis

Documentation

data LensRules Source

Rules to construct lenses for data fields.

Constructors

LensRules 

Fields

data DefName Source

Name to give to generated field optics.

Constructors

TopName Name

Simple top-level definiton name

MethodName Name Name

makeFields-style class name and method name

makeFieldOptics :: LensRules -> Name -> DecsQ Source

Compute the field optics for the type identified by the given type name. Lenses will be computed when possible, Traversals otherwise.