capnp-0.1.0.0: Cap'n Proto for Haskell

Safe HaskellNone
LanguageHaskell2010

Data.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

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 :: * Source #

Decerialize Data Source # 
Instance details

Associated Types

type Cerial msg Data :: * Source #

Cerialize s Text Source # 
Instance details

Methods

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