Copyright | (c) Eric Mertens 2017 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Lenses and traversals for compatibility with the lens package
Synopsis
- key :: Applicative f => Text -> (Value a -> f (Value a)) -> Value a -> f (Value a)
- text :: Applicative f => (Text -> f Text) -> Value a -> f (Value a)
- atom :: Applicative f => (Atom -> f Atom) -> Value a -> f (Value a)
- number :: Applicative f => (Number -> f Number) -> Value a -> f (Value a)
- list :: Applicative f => ([Value a] -> f [Value a]) -> Value a -> f (Value a)
- values :: Applicative f => (Value a -> f (Value a)) -> Value a -> f (Value a)
- sections :: Applicative f => ([Section a] -> f [Section a]) -> Value a -> f (Value a)
- ann :: Functor f => (a -> f a) -> Value a -> f (Value a)
- valuePlate :: Applicative f => (Value a -> f (Value a)) -> Value a -> f (Value a)
Documentation
ann :: Functor f => (a -> f a) -> Value a -> f (Value a) Source #
Lens for the annotation component of a Value
valuePlate :: Applicative f => (Value a -> f (Value a)) -> Value a -> f (Value a) Source #
Traversal for the immediate values in a list or a sections list.
This is intended to be used with Control.Lens.Plated.