capnp-0.4.0.0: Cap'n Proto for Haskell

Safe HaskellNone
LanguageHaskell2010

Capnp.Basics.Pure

Contents

Description

Analogous to Basics in the low-level API, this module deals with capnproto's Text and Data types. These are simply aliases for ByteString and the text package's Text; mostly this module provides helper functions and type class instances.

Unlike with the low-level API, typed lists do not require special treatment -- they're just Vectors.

Synopsis

Documentation

type Data = ByteString Source #

A capnproto Data value. This is just an alias for ByteString.

type Text = Text Source #

A capnproto Text. This is just an alias for the text package's Text.

Orphan instances

Cerialize Text Source # 
Instance details

Methods

cerialize :: RWCtx m s => MutMsg s -> Text -> m (Cerial (MutMsg s) Text) Source #

Cerialize Data Source # 
Instance details

Methods

cerialize :: RWCtx m s => MutMsg s -> Data -> m (Cerial (MutMsg s) Data) Source #

Marshal Text Source # 
Instance details

Methods

marshalInto :: RWCtx m s => Cerial (MutMsg s) Text -> Text -> m () Source #

Marshal Data Source # 
Instance details

Methods

marshalInto :: RWCtx m s => Cerial (MutMsg s) Data -> Data -> m () Source #

Decerialize Text Source # 
Instance details

Associated Types

type Cerial msg Text :: Type Source #

Decerialize Data Source # 
Instance details

Associated Types

type Cerial msg Data :: Type Source #

Cerialize (Vector (Vector (Vector (Vector (Vector Text))))) Source # 
Instance details

Cerialize (Vector (Vector (Vector (Vector (Vector Data))))) Source # 
Instance details

Cerialize (Vector (Vector (Vector (Vector Text)))) Source # 
Instance details

Cerialize (Vector (Vector (Vector (Vector Data)))) Source # 
Instance details

Cerialize (Vector (Vector (Vector Text))) Source # 
Instance details

Methods

cerialize :: RWCtx m s => MutMsg s -> Vector (Vector (Vector Text)) -> m (Cerial (MutMsg s) (Vector (Vector (Vector Text)))) Source #

Cerialize (Vector (Vector (Vector Data))) Source # 
Instance details

Methods

cerialize :: RWCtx m s => MutMsg s -> Vector (Vector (Vector Data)) -> m (Cerial (MutMsg s) (Vector (Vector (Vector Data)))) Source #

Cerialize (Vector (Vector Text)) Source # 
Instance details

Methods

cerialize :: RWCtx m s => MutMsg s -> Vector (Vector Text) -> m (Cerial (MutMsg s) (Vector (Vector Text))) Source #

Cerialize (Vector (Vector Data)) Source # 
Instance details

Methods

cerialize :: RWCtx m s => MutMsg s -> Vector (Vector Data) -> m (Cerial (MutMsg s) (Vector (Vector Data))) Source #

Cerialize (Vector Text) Source # 
Instance details

Methods

cerialize :: RWCtx m s => MutMsg s -> Vector Text -> m (Cerial (MutMsg s) (Vector Text)) Source #

Cerialize (Vector Data) Source # 
Instance details

Methods

cerialize :: RWCtx m s => MutMsg s -> Vector Data -> m (Cerial (MutMsg s) (Vector Data)) Source #