name:     progress-meter
version:  1.0.0
category: System
synopsis: Live diagnostics for concurrent activity

maintainer:   Ertugrul Söylemez <esz@posteo.de>
author:       Ertugrul Söylemez <esz@posteo.de>
copyright:    Copyright 2017 Ertugrul Söylemez
homepage:     https://github.com/esoeylemez/progress-meter
bug-reports:  https://github.com/esoeylemez/progress-meter/issues
license:      BSD3
license-file: LICENSE

description:  This library can be used to display a progress bar or
    other live diagnostics for your application.  It supports partial
    updates from multiple threads without interfering with each other,
    and it has the correct behaviour when printing diagnostics that are
    not part of the progress bar and should just scroll by.
    .
    The @System.Progress@ module contains a tutorial.

build-type:         Simple
cabal-version:      >= 1.10
extra-source-files: CHANGELOG.md README.md

source-repository head
    type:     git
    location: https://github.com/esoeylemez/progress-meter.git

flag Devel
    default: False
    description: Development dependencies
    manual: True

flag Examples
    default: False
    description: Build the example programs
    manual: True


library
    build-depends:
        ansi-terminal >= 0.6 && < 0.8,
        async >= 2.1.1 && < 2.2,
        base >= 4.8 && < 4.11,
        stm == 2.4.*
    if flag(devel)
        build-depends: rapid, rapid-term
    default-language: Haskell2010
    ghc-options: -W
    hs-source-dirs: src
    exposed-modules:
        System.Progress

-- executable pm-http-get
--     if flag(examples)
--         build-depends:
--             base >= 4.8 && < 4.10,
--             http-conduit,
--             progress-meter
--     else
--         buildable: False
--     default-language: Haskell2010
--     ghc-options: -W -threaded
--     hs-source-dirs: examples
--     main-is: pm-http-get.hs