-- Initial pubnub.cabal generated by cabal init.  For further documentation,
-- see http://haskell.org/cabal/users-guide/

name:                   pubnub
version:                0.1.0.0
synopsis:               PubNub Haskell SDK
-- description:
homepage:               http://github.com/pubnub/haskell
license:                MIT
license-file:           LICENSE
author:                 Tristan Sloughter
maintainer:             t@crashfast.com
-- copyright:
category:               Cloud, API
build-type:             Simple
-- extra-source-files:
cabal-version:          >=1.10

library
  exposed-modules:      Network.Pubnub, Network.Pubnub.Types
  -- other-modules:
  -- other-extensions:
  build-depends:        base >=4.6 && <4.7
                        , aeson >= 0.7.0.0
                        , http-conduit >= 2.0.0.3
                        , http-client >= 0.2.0.3
                        , conduit >= 1.0.9.3
                        , bytestring >= 0.10.0.2
                        , transformers >= 0.3.0.0
                        , vector >= 0.10.9.1
                        , text >= 0.11.1
                        , lifted-base >= 0.2.1.1
                        , mtl >= 2.1.2
                        , http-types >= 0.8.3
                        , uuid >= 1.3.3
                        , async >= 2.0.1.4
                        , data-default
                        , SHA >= 1.6.1
                        , cipher-aes >= 0.2.6
                        , crypto-api >= 0.12.2.2
                        , crypto-cipher-types >= 0.0.9
                        , base64-bytestring >= 1.0.0.1
  ghc-options:          -Wall
  hs-source-dirs:       src
  default-language:     Haskell2010

executable hello_world
  hs-source-dirs:       examples/HelloWorld
  ghc-options:          -Wall
  main-is:              Main.hs
  default-language:     Haskell2010
  build-depends:        base ==4.6.*, Cabal >= 1.16.0
                        , pubnub
                        , aeson >= 0.6.2.1
                        , text >= 0.11.1

executable chat
  hs-source-dirs:       examples/Chat
  ghc-options:          -Wall
  main-is:              Main.hs
  default-language:     Haskell2010
  build-depends:        base ==4.6.*, Cabal >= 1.16.0
                        , aeson >= 0.6.2.1
                        , bytestring >= 0.10.0.2
                        , async >= 2.0.1.4
                        , pubnub >= 0.1.0.0
                        , text >= 0.11.1

executable test-pubnub-haskell
  hs-source-dirs:       test
  ghc-options:          -Wall
  main-is:              Test.hs
  default-language:     Haskell2010
  build-depends:        base ==4.6.*, Cabal >= 1.16.0
                        , pubnub
                        , HUnit
                        , QuickCheck
                        , smallcheck
                        , tasty
                        , tasty-hunit
                        , tasty-quickcheck
                        , tasty-smallcheck
test-suite Tests
  hs-source-dirs:       test
  ghc-options:          -Wall
  main-is:              Test.hs
  Type:                 exitcode-stdio-1.0
  default-language:     Haskell2010
  build-depends:        base ==4.6.*, Cabal >= 1.16.0
                        , pubnub
                        , HUnit
                        , QuickCheck
                        , smallcheck
                        , tasty
                        , tasty-hunit
                        , tasty-quickcheck
                        , tasty-smallcheck