Safe Haskell | None |
---|---|
Language | Haskell2010 |
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!
- type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t
- type Lens' s a = Lens s s a a
- type Prism s t a b = forall p f. (Choice p, Applicative f) => p a (f b) -> p s (f t)
- type Prism' s a = Prism s s a a
- iriHttpIri :: Prism' Iri HttpIri
- uriByteStringIri :: Prism' ByteString Iri
- uriByteStringHttpIri :: Prism' ByteString HttpIri
- iriTextIri :: Prism' Text Iri
- iriTextHttpIri :: Prism' Text HttpIri
- iriScheme :: Lens' Iri ByteString
- iriHierarchy :: Lens' Iri Hierarchy
- iriQuery :: Lens' Iri Text
- iriFragment :: Lens' Iri Text
Definitions
type Prism s t a b = forall p f. (Choice p, Applicative f) => p a (f b) -> p s (f t) Source #