packages feed

bet-0.1.2.2: bet.cabal

name:                bet
version:             0.1.2.2
synopsis:            Betfair API bindings. Bet on sports on betting exchanges.
description:
    This library contains Haskell bindings to the Betfair API.
    .
    <https://developer.betfair.com/default/api-s-and-services/sports-api/sports-overview/>
    .
    At the moment, the \'Betting API\' and \'Heartbeat API\' is implemented.
    The \'Accounts API\' is not.
    .
    See "Network.Betfair".
    .
    CAUTION: These are experimental bindings. Because of the financially
    dangerous nature of betting, I advice you to have a contingency plan if
    something in the library breaks down.
    .
    In particular, check the Betfair API documentation page for which version
    it is at the moment. This library is written against version 2.1.
    .
    This library enforces limits on the number of calls you can do to Betfair
    API in a second, to help you avoid data charges. See
    "Network.Betfair.Unsafe".
homepage:            https://github.com/Noeda/bet/
license:             MIT
license-file:        LICENSE
author:              Mikko Juola
maintainer:          mikjuo@gmail.com
copyright:           Copyright (C) 2014-2015 Mikko Juola
category:            Network
build-type:          Simple
stability:           experimental
cabal-version:       >=1.10
extra-source-files:  README.md

flag toys
  description:         Build toys; to test if things work
  default:             False

source-repository head
    type:            git
    location:        https://github.com/Noeda/bet.git

library
  exposed-modules:     Data.Bet
                       Network.Betfair
                       Network.Betfair.Types
                       Network.Betfair.Types.TH
                       Network.Betfair.Unsafe

  other-modules:       Network.Betfair.Internal

  build-depends:       aeson                 >=0.8.0.2 && <1.0
                      ,base                  >=4.7     && <5.0
                      ,bifunctors            >=4.2     && <5.0
                      ,bytestring            >=0.10    && <1.0
                      ,containers            >=0.5     && <1.0
                      ,exceptions            >=0.6     && <1.0
                      ,HsOpenSSL             >=0.11    && <1.0
                      ,http-client-openssl   >=0.2     && <1.0
                      ,lens                  >=4.6     && <5.0
                      ,mtl                   >=2.1     && <3.0
                      ,pipes                 >=4.1.3   && <5.0
                      ,pipes-http            >=1.0.1   && <2.0
                      ,semigroups            >=0.15.4  && <1.0
                      ,semigroupoids         >=4.2     && <5.0
                      ,text                  >=1.2     && <2.0
                      ,time                  >=1.4     && <1.5
  ghc-options:         -Wall
  hs-source-dirs:      src
  default-language:    Haskell2010

test-suite properties
  type:                exitcode-stdio-1.0
  main-is:             Main.hs
  other-modules:       DataBet
  hs-source-dirs:      test
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base
                      ,bet
                      ,lens                         >=4.6     && <5.0
                      ,QuickCheck                   >=2.7.6   && <3.0
                      ,semigroups                   >=0.15.4  && <1.0
                      ,test-framework               >=0.8.0.3 && <1.0
                      ,test-framework-quickcheck2   >=0.3.0.3 && <1.0
                      ,test-framework-th            >=0.2.4   && <1.0
  default-language:    Haskell2010

executable login-test
  if flag(toys)
    build-depends:     base
                      ,bet
  else
    buildable:         False

  main-is:             Main.hs
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N
  hs-source-dirs:      toys/login-test
  default-language:    Haskell2010