distributed-process-extras-0.2.1.1: Cloud Haskell Extras

Copyright(c) Tim Watson 2013
LicenseBSD3 (see the file LICENSE)
MaintainerTim Watson <watson.timothy@gmail.com>
Stabilityexperimental
Portabilitynon-portable (requires concurrency)
Safe HaskellNone
LanguageHaskell98

Control.Distributed.Process.Extras.UnsafePrimitives

Description

Unsafe Messaging Primitives Using NFData

This module mirrors Control.Distributed.Process.UnsafePrimitives, but attempts to provide a bit more safety by forcing evaluation before sending. This is handled using NFData, by means of the NFSerializable type class.

Note that we still cannot guarantee that both the NFData and Binary instances will evaluate your data the same way, therefore these primitives still have certain risks and potential side effects. Use with caution.

Synopsis

Documentation

wrapMessage :: NFSerializable a => a -> Message Source

Create an unencoded Message for any Serializable type.