Copyright (c) Tim Watson 2013 - 2017 BSD3 (see the file LICENSE) Tim Watson experimental non-portable (requires concurrency) None Haskell98

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.