Permalink
Browse files

Minor tweaks.

  • Loading branch information...
1 parent bc19730 commit 3df834be3a9a375495b82cd8226129dd9b09e032 Toralf Wittner committed Jan 7, 2012
Showing with 9 additions and 7 deletions.
  1. +3 −3 src/System/ZMQ3.hs
  2. +4 −4 src/System/ZMQ3/Error.hs
  3. +2 −0 zeromq3-haskell.cabal
View
@@ -58,7 +58,7 @@
-- 'receive' are internally non-blocking and use GHC's I/O manager to block
-- calling threads when send or receive would yield EAGAIN. This combined with
-- GHC's scalable threading model should relieve client code from the burden
--- to do it's own polling. For timeouts have a look at 'System.Timeout.timeout'.
+-- to do it's own polling. For timeouts please consider 'System.Timeout.timeout'.
--
-- /Error Handling/
--
@@ -355,8 +355,8 @@ term = throwIfMinus1Retry_ "term" . c_zmq_term . ctx
-- throws an exception.
withContext :: Size -> (Context -> IO a) -> IO a
withContext ioThreads act =
- bracket (throwIfNull "c_zmq_init" $ c_zmq_init (fromIntegral ioThreads))
- (throwIfMinus1Retry_ "c_zmq_term" . c_zmq_term)
+ bracket (throwIfNull "withContext (init)" $ c_zmq_init (fromIntegral ioThreads))
+ (throwIfMinus1Retry_ "withContext (term)" . c_zmq_term)
(act . Context)
-- | Run an action with a 0MQ socket. The socket will be closed after running
View
@@ -18,11 +18,11 @@ import Foreign.C.Types (CInt)
import System.ZMQ3.Base
-- | ZMQError encapsulates information about errors, which occur
--- when using the native 0MQ API, such as the error number and message.
+-- when using the native 0MQ API, such as error number and message.
data ZMQError = ZMQError {
- errno :: Int -- ^ Get the error number int value.
- , source :: String -- ^ Get the source where this error originates from.
- , message :: String -- ^ Get the actual error message.
+ errno :: Int -- ^ Error number value.
+ , source :: String -- ^ Source where this error originates from.
+ , message :: String -- ^ Actual error message.
} deriving (Eq, Ord, Typeable)
instance Show ZMQError where
View
@@ -15,7 +15,9 @@ build-type: Simple
extra-source-files: README.md
, AUTHORS
, examples/*.hs
+ , examples/Makefile
, examples/perf/*.hs
+ , examples/perf/Makefile
, tests/*.hs
, tests/System/ZMQ3/Test/*.hs
description:

0 comments on commit 3df834b

Please sign in to comment.