Safe Haskell | None |
---|---|
Language | Haskell2010 |
Some high level prisms for interacting with something that could be JSON.
Synopsis
- _TextJson :: (CharParsing g, Monad g, Show e) => (forall a. g a -> Text -> Either e a) -> Prism' Text Json
- _Number :: Prism' Json Scientific
- _String :: Prism' Json Text
- _Bool :: Prism' Json Bool
- _ArrayOf :: Prism' Json x -> Prism' Json (Vector x)
- _ObjHashMapOf :: Prism' Json x -> Prism' Json (HashMap Text x)
- _Null :: Prism' Json ()
Prisms
_TextJson :: (CharParsing g, Monad g, Show e) => (forall a. g a -> Text -> Either e a) -> Prism' Text Json Source #
_Number :: Prism' Json Scientific Source #
Prism'
between some Json
and a Scientific
value