Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module is the generated code for capnp/json.capnp, for the low-level api.
Documentation
newtype JsonValue msg Source #
JsonValue_newtype_ (Struct msg) |
Instances
ToStruct msg (JsonValue msg) Source # | |
FromStruct msg (JsonValue msg) Source # | |
Defined in Capnp.Capnp.Json | |
IsPtr msg (JsonValue msg) Source # | |
Allocate s (JsonValue (MutMsg s)) Source # | |
MutListElem s (JsonValue (MutMsg s)) Source # | |
ListElem msg (JsonValue msg) Source # | |
IsPtr msg (List msg (JsonValue msg)) Source # | |
MessageDefault (JsonValue msg) Source # | |
Defined in Capnp.Capnp.Json | |
HasMessage (JsonValue msg) Source # | |
data List msg (JsonValue msg) Source # | |
Defined in Capnp.Capnp.Json | |
type InMessage (JsonValue msg) Source # | |
Defined in Capnp.Capnp.Json |
data JsonValue' msg Source #
JsonValue'null | |
JsonValue'boolean Bool | |
JsonValue'number Double | |
JsonValue'string (Text msg) | |
JsonValue'array (List msg (JsonValue msg)) | |
JsonValue'object (List msg (JsonValue'Field msg)) | |
JsonValue'call (JsonValue'Call msg) | |
JsonValue'unknown' Word16 |
Instances
FromStruct msg (JsonValue' msg) Source # | |
Defined in Capnp.Capnp.Json fromStruct :: ReadCtx m msg => Struct msg -> m (JsonValue' msg) Source # |
get_JsonValue' :: ReadCtx m msg => JsonValue msg -> m (JsonValue' msg) Source #
set_JsonValue'array :: RWCtx m s => JsonValue (MutMsg s) -> List (MutMsg s) (JsonValue (MutMsg s)) -> m () Source #
new_JsonValue'array :: RWCtx m s => Int -> JsonValue (MutMsg s) -> m (List (MutMsg s) (JsonValue (MutMsg s))) Source #
set_JsonValue'object :: RWCtx m s => JsonValue (MutMsg s) -> List (MutMsg s) (JsonValue'Field (MutMsg s)) -> m () Source #
new_JsonValue'object :: RWCtx m s => Int -> JsonValue (MutMsg s) -> m (List (MutMsg s) (JsonValue'Field (MutMsg s))) Source #
set_JsonValue'call :: RWCtx m s => JsonValue (MutMsg s) -> JsonValue'Call (MutMsg s) -> m () Source #
new_JsonValue'call :: RWCtx m s => JsonValue (MutMsg s) -> m (JsonValue'Call (MutMsg s)) Source #
newtype JsonValue'Call msg Source #
Instances
get_JsonValue'Call'function :: ReadCtx m msg => JsonValue'Call msg -> m (Text msg) Source #
has_JsonValue'Call'function :: ReadCtx m msg => JsonValue'Call msg -> m Bool Source #
set_JsonValue'Call'function :: RWCtx m s => JsonValue'Call (MutMsg s) -> Text (MutMsg s) -> m () Source #
new_JsonValue'Call'function :: RWCtx m s => Int -> JsonValue'Call (MutMsg s) -> m (Text (MutMsg s)) Source #
get_JsonValue'Call'params :: ReadCtx m msg => JsonValue'Call msg -> m (List msg (JsonValue msg)) Source #
has_JsonValue'Call'params :: ReadCtx m msg => JsonValue'Call msg -> m Bool Source #
set_JsonValue'Call'params :: RWCtx m s => JsonValue'Call (MutMsg s) -> List (MutMsg s) (JsonValue (MutMsg s)) -> m () Source #
new_JsonValue'Call'params :: RWCtx m s => Int -> JsonValue'Call (MutMsg s) -> m (List (MutMsg s) (JsonValue (MutMsg s))) Source #
newtype JsonValue'Field msg Source #
Instances
get_JsonValue'Field'name :: ReadCtx m msg => JsonValue'Field msg -> m (Text msg) Source #
has_JsonValue'Field'name :: ReadCtx m msg => JsonValue'Field msg -> m Bool Source #
set_JsonValue'Field'name :: RWCtx m s => JsonValue'Field (MutMsg s) -> Text (MutMsg s) -> m () Source #
new_JsonValue'Field'name :: RWCtx m s => Int -> JsonValue'Field (MutMsg s) -> m (Text (MutMsg s)) Source #
get_JsonValue'Field'value :: ReadCtx m msg => JsonValue'Field msg -> m (JsonValue msg) Source #
has_JsonValue'Field'value :: ReadCtx m msg => JsonValue'Field msg -> m Bool Source #
set_JsonValue'Field'value :: RWCtx m s => JsonValue'Field (MutMsg s) -> JsonValue (MutMsg s) -> m () Source #
new_JsonValue'Field'value :: RWCtx m s => JsonValue'Field (MutMsg s) -> m (JsonValue (MutMsg s)) Source #