waargonaut-0.8.0.1: JSON wrangling

Safe HaskellNone
LanguageHaskell2010

Waargonaut.Lens

Contents

Description

Some high level prisms for interacting with something that could be JSON.

Synopsis

Prisms

_TextJson :: (CharParsing g, Monad g, Show e) => (forall a. g a -> Text -> Either e a) -> Prism' Text Json Source #

Prism' between Json and Text

_String :: Prism' Json Text Source #

Prism' between some Json and a Text value

_Bool :: Prism' Json Bool Source #

Prism' between some Json and a Bool value

_ArrayOf :: Prism' Json x -> Prism' Json (Vector x) Source #

Prism' between some Json and an array of something given the provided Prism'

_ObjHashMapOf :: Prism' Json x -> Prism' Json (HashMap Text x) Source #

Prism' between some Json and a strict HashMap with Text keys, and some value of a type provided by the given Prism' Json x.

_Null :: Prism' Json () Source #

Prism' between some Json and a '()' value