Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Optics for compatibility with the lens package
- key :: Applicative f => Text -> (Value -> f Value) -> Value -> f Value
- text :: Applicative f => (Text -> f Text) -> Value -> f Value
- number :: Applicative f => (Integer -> f Integer) -> Value -> f Value
- atom :: Applicative f => (Text -> f Text) -> Value -> f Value
- list :: Applicative f => ([Value] -> f [Value]) -> Value -> f Value
- sections :: Applicative f => ([Section] -> f [Section]) -> Value -> f Value
Documentation
:: Applicative f | |
=> Text | section name |
-> (Value -> f Value) | |
-> Value | |
-> f Value |
Apply a function to the subsections of the given value when
that value is a Sections
and the subsection name matches the
given section name
text :: Applicative f => (Text -> f Text) -> Value -> f Value Source
Apply a function to the Text
contained inside the given
Value
when it is a Text
.
atom :: Applicative f => (Text -> f Text) -> Value -> f Value Source
Apply a function to the Text
contained inside the given
Value
when it is a Text
. This traversal is only valid
if the output atom is a valid atom!