iri-0.5.1.1: RFC-compliant universal resource identifier library (URL, URI, IRI)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Iri.Optics

Description

These are the beginnings of a Lens API. It is compatible with the general Van Laarhoven lens libraries, such as "lens".

Many more definitions can be implemented, so do PRs if you miss any!

Synopsis

Documentation

type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t Source #

type Lens' s a = Lens s s a a Source #

type Prism s t a b = forall p f. (Choice p, Applicative f) => p a (f b) -> p s (f t) Source #

type Prism' s a = Prism s s a a Source #

type Traversal s t a b = forall f. Applicative f => (a -> f b) -> s -> f t Source #

type Traversal' s a = Traversal s s a a Source #

Definitions by source

Text

ByteString

IRI

Scheme

Fragment