Deadpan-DDP-0.9.4.0: Write clients for Meteor's DDP Protocol

Safe HaskellNone
LanguageHaskell2010

Data.EJson.EJson

Description

Currently EJson functionality is built on top of the Value type.

Functions are written to convert back and forth between EJsonValue and Value.

The conversion functions from EJsonValue to Value are in a seperate module: Data.EJson.EJson2Value.

This has some negative impact on performance, but aids simplicity.

Synopsis

Documentation

_EJObjectKeyString :: Applicative f => Text -> (Text -> f Text) -> EJsonValue -> f EJsonValue Source

A helpful prism that looks up values of type EJ{"foo" : "bar", ...} with a Text key "foo" and returns Just "bar", or Nothing. Used frequently for checking message types and ids.