packages feed

zeromq4-haskell-0.2: zeromq4-haskell.cabal

name:               zeromq4-haskell
version:            0.2
synopsis:           Bindings to ZeroMQ 4.x
category:           System, FFI
license:            MIT
license-file:       LICENSE
author:             Toralf Wittner
maintainer:         Toralf Wittner <tw@dtex.org>
copyright:          Copyright (c) 2010 - 2014 zeromq-haskell authors
homepage:           http://github.com/twittner/zeromq-haskell/
stability:          experimental
tested-With:        GHC == 7.6.3
cabal-version:      >= 1.8
build-type:         Simple
extra-source-files:
      README.md
    , AUTHORS
    , examples/*.hs
    , examples/Makefile
    , examples/perf/*.hs
    , examples/perf/Makefile
    , tests/*.hs
    , tests/System/ZMQ4/Test/*.hs

description:
    The 0MQ lightweight messaging kernel is a library which extends
    the standard socket interfaces with features traditionally provided
    by specialised messaging middleware products.
    .
    0MQ sockets provide an abstraction of asynchronous message queues,
    multiple messaging patterns, message filtering (subscriptions),
    seamless access to multiple transport protocols and more.
    .
    This library provides the Haskell language binding to 0MQ >= 4.x

source-repository head
    type:             git
    location:         https://github.com/twittner/zeromq-haskell

library
    hs-source-dirs:       src
    exposed-modules:
        System.ZMQ4
        System.ZMQ4.Monadic
        Data.Restricted

    other-modules:
        System.ZMQ4.Base
        System.ZMQ4.Internal
        System.ZMQ4.Error

    includes:             zmq.h
    ghc-options:          -Wall -O2 -fwarn-tabs -funbox-strict-fields
    build-depends:
          base >= 3 && < 5
        , async                     == 2.0.*
        , bytestring
        , containers
        , exceptions                >= 0.3
        , MonadCatchIO-transformers
        , semigroups                >= 0.8
        , transformers              >= 0.3

    if os(freebsd)
        extra-libraries:  zmq, pthread
    else
        extra-libraries:  zmq

test-suite zeromq-haskell-tests
    type:             exitcode-stdio-1.0
    hs-source-dirs:   tests
    main-is:          tests.hs
    other-modules:    Test.Tools
    ghc-options:      -Wall -threaded -rtsopts
    build-depends:
          zeromq4-haskell
        , ansi-terminal             >= 0.6
        , async                     == 2.0.*
        , base                      >= 3 && < 5
        , bytestring
        , checkers                  >= 0.3
        , containers
        , MonadCatchIO-transformers
        , QuickCheck                >= 2.6
        , transformers