Safe Haskell | None |
---|
The ZeroMQ module abstracts away the low-level 0MQ based interface with IPython,
replacing it instead with a Haskell Channel based interface. The serveProfile
function
takes a IPython profile specification and returns the channel interface to use.
- data ZeroMQInterface = Channels {}
- data ZeroMQStdin = StdinChannel {}
- serveProfile :: Profile -> IO ZeroMQInterface
- serveStdin :: Profile -> IO ZeroMQStdin
Documentation
data ZeroMQInterface Source
The channel interface to the ZeroMQ sockets. All communication is done via Messages, which are encoded and decoded into a lower level form before being transmitted to IPython. These channels should functionally serve as high-level sockets which speak Messages instead of ByteStrings.
Channels | |
|
data ZeroMQStdin Source
:: Profile | The profile specifying which ports and transport mechanisms to use. |
-> IO ZeroMQInterface | The Message-channel based interface to the sockets. |
Start responding on all ZeroMQ channels used to communicate with IPython | via the provided profile. Return a set of channels which can be used to | communicate with IPython in a more structured manner.
serveStdin :: Profile -> IO ZeroMQStdinSource