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

Safe HaskellNone
LanguageHaskell2010

Data.EJson.Prism

Description

Making EJsonValue Control.Lens compatible through Prisms

Since EJsonValue is a sum-type, you need to take advantage of the Prism class provided by the Lens library if you wish to use it in a lens-compatible way.

The set of instances is so-far incomplete.

Synopsis

Documentation

_EJObject :: Text -> Prism' EJsonValue EJsonValue Source

_EJObject is a prism that allows access to the value represented by a lookup via a key in to an EJObject.

This is constructed as a convenience so that you do not need to compose, or even have knowledge of the underlying HashMap implementaiton of EJObject.

_EJString :: Prism' EJsonValue Text Source

_EJString is a prism that points to the EJString constructor of the EJsonValue data-type.