json-ast-0.3.1: Universal JSON AST datastructure

Safe HaskellNone
LanguageHaskell2010

JSONAST

Description

This module contains no namespace conflicts with Prelude, so it can be imported unqualified.

Synopsis

Documentation

data JSON Source #

A JSON value AST.

Note that this datastructure is identical to "aeson" Value. Until "aeson" implements the dependency on "json-ast", you can use unsafeCoerce to work with it, thus sidestepping the redundant conversions.

Instances

Eq JSON Source # 

Methods

(==) :: JSON -> JSON -> Bool #

(/=) :: JSON -> JSON -> Bool #

Data JSON Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JSON -> c JSON #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JSON #

toConstr :: JSON -> Constr #

dataTypeOf :: JSON -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c JSON) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JSON) #

gmapT :: (forall b. Data b => b -> b) -> JSON -> JSON #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JSON -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JSON -> r #

gmapQ :: (forall d. Data d => d -> u) -> JSON -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JSON -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JSON -> m JSON #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JSON -> m JSON #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JSON -> m JSON #

Read JSON Source # 
Show JSON Source # 

Methods

showsPrec :: Int -> JSON -> ShowS #

show :: JSON -> String #

showList :: [JSON] -> ShowS #