packages feed

ipython-kernel 0.6.1.1 → 0.6.1.2

raw patch · 2 files changed

+7/−12 lines, 2 files

Files

ipython-kernel.cabal view
@@ -1,5 +1,5 @@ name:                ipython-kernel-version:             0.6.1.1+version:             0.6.1.2 synopsis:            A library for creating kernels for IPython frontends  description:         ipython-kernel is a library for communicating with frontends for the interactive IPython framework. It is used extensively in IHaskell, the interactive Haskell environment.
src/IHaskell/IPython/ZeroMQ.hs view
@@ -141,17 +141,12 @@  -- | Run session for communicating with an IPython instance on ephemerally allocated ZMQ4 sockets. -- The sockets will be closed when the callback returns.-withEphemeralPorts :: ByteString-                   -> -                      -- ^ HMAC encryption key-                      Bool-                                           -> -                                              -- ^ Print debug output-                                              (ZeroMQEphemeralPorts -> ZeroMQInterface -> IO a)-                                                                  -> -                                                                     -- ^ Callback that takes the-                                                                     -- interface to the sockets.-                                                                     IO a+withEphemeralPorts :: ByteString -- ^ HMAC encryption key+                   -> Bool -- ^ Print debug output+                   -> (ZeroMQEphemeralPorts -> ZeroMQInterface -> IO a) -- ^ Callback that takes the+                                                                        -- interface to the+                                                                        -- sockets.+                   -> IO a withEphemeralPorts key debug callback = do   channels <- newZeroMQInterface key   -- Create the ZMQ4 context