packages feed

hats-0.1.0.0: hats.cabal

name:                hats
version:             0.1.0.0
synopsis:            Haskell client for the NATS messaging system
description:
    A Haskell client for the NATS messaging system. To get started,
    see the documentation for the "Network.Nats" module. Or see the
    example programs in the example directory.
    .
    A general introduction to NATS can be found at <https://nats.io>.
homepage:            https://github.com/kosmoskatten/hats
bug-reports:         https://github.com/kosmoskatten/hats/issues
license:             MIT
license-file:        LICENSE
author:              Patrik Sandahl
maintainer:          patrik.sandahl@gmail.com
copyright:           2016 Patrik Sandahl
stability:           experimental
tested-with:         GHC == 7.10.3, GHC == 8.0.1
category:            Network
build-type:          Simple
extra-source-files:  README.md
                     CHANGES.md
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     Network.Nats
                       Network.Nats.Types
                       Network.Nats.Message.Message
                       Network.Nats.Message.Parser
                       Network.Nats.Message.Writer

  other-modules:       Network.Nats.Api
                       Network.Nats.Connection
                       Network.Nats.ConnectionManager
                       Network.Nats.Dispatcher
                       Network.Nats.JsonApi
                       Network.Nats.Subscriber
                       Network.Nats.Conduit
  build-depends:       base >= 4.7 && < 5
                     , aeson
                     , async
                     , attoparsec
                     , bytestring
                     , conduit
                     , conduit-extra
                     , connection
                     , deepseq
                     , network
                     , network-uri
                     , random
                     , stm
                     , text
                     , transformers
                     , unordered-containers
  ghc-options:         -Wall
  default-language:    Haskell2010

executable hats-examples
  hs-source-dirs:     example
  main-is:            Examples.hs
  build-depends:      base
                    , hats
  ghc-options:        -Wall
  default-language:   Haskell2010

test-suite hats-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  other-modules:       MessageProps
                       CallbackTests
                       JsonTests
                       NatsTests
                       ReconnectionTests
                       Gnatsd
  build-depends:       base
                     , aeson
                     , attoparsec
                     , bytestring
                     , hats
                     , HUnit
                     , process
                     , test-framework
                     , test-framework-hunit
                     , test-framework-quickcheck2
                     , text
                     , QuickCheck
  ghc-options:         -Wall -threaded
  default-language:    Haskell2010

benchmark hats-bench
  type:                exitcode-stdio-1.0
  hs-source-dirs:      bench
  main-is:             Bench.hs
  build-depends:       base
                     , async
                     , attoparsec
                     , bytestring
                     , criterion
                     , hats
                     , random
                     , stm
  ghc-options:         -Wall -threaded
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/kosmoskatten/hats