ihaskell-0.4.3.0: A Haskell backend kernel for the IPython project.

Safe HaskellNone

IHaskell.IPython.Message.Parser

Description

This module is responsible for converting from low-level ByteStrings obtained from the 0MQ sockets into Messages. The only exposed function is parseMessage, which should only be used in the low-level 0MQ interface.

Synopsis

Documentation

parseMessageSource

Arguments

:: [ByteString]

The list of identifiers sent with the message.

-> ByteString

The header data.

-> ByteString

The parent header, which is just {} if there is no header.

-> ByteString

The metadata map, also {} for an empty map.

-> ByteString

The message content.

-> Message

A parsed message.

Parse a message from its ByteString components into a Message.