capnp-0.12.0.0: Cap'n Proto for Haskell
Safe HaskellNone
LanguageHaskell2010

Capnp.Basics.Pure

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

Decerialize Text Source # 
Instance details

Associated Types

type Cerial mut Text Source #

Decerialize Data Source # 
Instance details

Associated Types

type Cerial mut Data Source #

Cerialize s Text Source # 
Instance details

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Text -> m (Cerial ('Mut s) Text) Source #

Cerialize s Data Source # 
Instance details

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Data -> m (Cerial ('Mut s) Data) Source #

Marshal s Text Source # 
Instance details

Methods

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

Marshal s Data Source # 
Instance details

Methods

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

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

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector (Vector (Vector (Vector (Vector Data)))) -> m (Cerial ('Mut s) (Vector (Vector (Vector (Vector (Vector Data)))))) Source #

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

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector (Vector (Vector (Vector (Vector Text)))) -> m (Cerial ('Mut s) (Vector (Vector (Vector (Vector (Vector Text)))))) Source #

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

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector (Vector (Vector (Vector Data))) -> m (Cerial ('Mut s) (Vector (Vector (Vector (Vector Data))))) Source #

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

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector (Vector (Vector (Vector Text))) -> m (Cerial ('Mut s) (Vector (Vector (Vector (Vector Text))))) Source #

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

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector (Vector (Vector Data)) -> m (Cerial ('Mut s) (Vector (Vector (Vector Data)))) Source #

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

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector (Vector (Vector Text)) -> m (Cerial ('Mut s) (Vector (Vector (Vector Text)))) Source #

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

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector (Vector Data) -> m (Cerial ('Mut s) (Vector (Vector Data))) Source #

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

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector (Vector Text) -> m (Cerial ('Mut s) (Vector (Vector Text))) Source #

Cerialize s (Vector Data) Source # 
Instance details

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector Data -> m (Cerial ('Mut s) (Vector Data)) Source #

Cerialize s (Vector Text) Source # 
Instance details

Methods

cerialize :: RWCtx m s => Message ('Mut s) -> Vector Text -> m (Cerial ('Mut s) (Vector Text)) Source #