-- ------------------------------------------------------ --
-- Copyright © 2014 AlephCloud Systems, Inc.
-- ------------------------------------------------------ --

Name: aws-performance-tests
Version: 0.1.1
Synopsis: Performance Tests for the Haskell bindings for Amazon Web Services (AWS)
Description:
    Performance Tests for the Haskell bindings for
    <http://hackage.haskell.org/package/aws Amazon Web Services (AWS)>.
    .
    At the current stage this package only has tests for the DynamoDb
    bindings.
    .
    /IMPORTANT NOTE/
    .
    By using the dynamo-performace application from this package with your AWS API
    credentials costs will incure to your AWS account. Depending on the provisioned
    test table read and write throughput these costs can be in the order of several
    dollars per hour.
    .
    Also be aware that there is an option to keep the table after the tests are finished
    (for example for usage with successive test runs). If you use that option you have to
    make sure that you delete the table yourself when you don't need it any more.

Homepage: http://github.com/alephcloud/hs-aws-performance-tests
License: MIT
License-file: LICENSE
Author: Lars Kuhtz <lars@alephcloud.com>
Maintainer: Lars Kuhtz <lars@alephcloud.com>
Copyright: (c) 2014 AlephCloud, Inc.
Category: Network, Web, AWS, Cloud, Distributed Computing
Build-type: Custom

cabal-version: >= 1.16

extra-doc-files:
    README.md,
    CHANGELOG.md

extra-source-files:
    constraints

source-repository head
    type: git
    location: https://github.com/alephcloud/hs-aws-performance-tests.git

source-repository this
    type: git
    location: https://github.com/alephcloud/hs-aws-performance-tests.git
    tag: 0.1.1

Flag with-chart
    Description: Build applications with support for printing charts.
    Default: False
    Manual: True

Library
    default-language: Haskell2010
    hs-source-dirs: src

    exposed-modules:
        Aws.Test.Utils
        Aws.Test.DynamoDb.Utils

    build-depends:
        aeson >= 0.7,
        aws >= 0.10.3,
        base == 4.*,
        errors >= 1.4.7,
        lifted-base >= 0.2,
        monad-control >= 0.3,
        mtl >= 2.1,
        text >= 1.1,
        transformers >= 0.3

    ghc-options: -Wall

executable dynamodb-performance
    default-language: Haskell2010
    hs-source-dirs: src/Aws/Test/DynamoDb
    main-is: Performance.hs

    build-depends:
        async >= 2.0,
        aws >= 0.10.3,
        aws-performance-tests,
        base == 4.*,
        bytestring >= 0.10,
        configuration-tools >= 0.2.4,
        containers >= 0.5,
        dlist >= 0.7,
        errors >= 1.4.7,
        http-client >= 0.3,
        lens >= 4.2,
        monad-control >= 0.3,
        optparse-applicative >= 0.10,
        resourcet >= 1.1,
        statistics >= 0.12,
        text >= 1.1,
        time >= 1.4,
        transformers >= 0.3,
        vector >= 0.10

    if flag(with-chart)
        build-depends:
            Chart >= 1.2,
            Chart-cairo >= 1.2,
            colour >= 2.3,
            data-default >= 0.5

        cpp-options: -DWITH_CHART

    ghc-options: -Wall -threaded -with-rtsopts=-N