extensible-0.4.8: Extensible, efficient, optics-friendly data types and effects

Copyright(c) Fumiaki Kinoshita 2018
LicenseBSD3
MaintainerFumiaki Kinoshita <fumiexcel@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Data.Extensible.Label

Contents

Description

Experimental API for OverloadedLabels. GHC 8.0+ only

Synopsis

Documentation

:: Proxy k -> FieldOptic k Source #

Specialised version of itemAssoc.

Orphan instances

(Extensible (Assoc Symbol v1) f p e, Associate Symbol v1 k v2 xs, Labelling Symbol * * k p, Wrapper v1 h, ExtensibleConstr (Assoc Symbol v1) e (Field Symbol v1 h) xs ((:>) Symbol v1 k v2), (~) * rep (Repr v1 h v2), (~) * s (e (Field Symbol v1 h) xs), (~) * s t, (~) * rep rep') => IsLabel k (p rep (f rep') -> p s (f t)) Source # 

Methods

fromLabel :: p rep (f rep') -> p s (f t) #

(~) Symbol k l => IsLabel k (Proxy Symbol l) Source # 

Methods

fromLabel :: Proxy Symbol l #