packages feed

ascii-progress-0.1.0.2: ascii-progress.cabal

name:                ascii-progress
version:             0.1.0.2
synopsis:            A simple progress bar for the console.
description:
    A simple Haskell progress bar for the console. Heavily borrows from TJ
    Holowaychuk's Node.JS project <https://github.com/tj/node-progress progress>

    @@@
    import Control.Concurrent (threadDelay)
    import Control.Monad (unless)
    import System.Console.AsciiProgress (Options(..), isComplete, def,
                                         newProgressBar, tick)

    main :: IO ()
    main = do
        pg <- newProgressBar def { pgWidth = 50 }
        loop pg
      where
        loop pg = do
            b <- isComplete pg
            unless b $ do
                threadDelay $ 200 * 1000
                tick pg
                loop pg
    @@@

    <https://github.com/yamadapc/haskell-ascii-progress github>

homepage:            https://github.com/yamadapc/haskell-ascii-progress
license:             GPL-2
license-file:        LICENSE
author:              Pedro Tacla Yamada
maintainer:          tacla.yamada@gmail.com
copyright:           (c) 2015 Pedro Tacla Yamada
category:            System
build-type:          Simple
cabal-version:       >=1.10

library
  exposed-modules:     System.Console.AsciiProgress
                     , System.Console.AsciiProgress.Internal
  build-depends:       MissingH
                     , ansi-terminal
                     , async >= 2.0.1.5
                     , base >=4.7 && <4.8
                     , data-default >= 0.5.3
                     , time >= 1.4.2
  hs-source-dirs:      lib
  default-language:    Haskell2010

executable example
  main-is:             Example.hs
  build-depends:       MissingH
                     , ansi-terminal
                     , async >= 2.0.1.5
                     , base >=4.7 && <4.8
                     , data-default >= 0.5.3
                     , time >= 1.4.2
  hs-source-dirs:      lib
                     , bin
  default-language:    Haskell2010

test-suite hspec
  type:                exitcode-stdio-1.0
  main-is: Spec.hs
  build-depends:       MissingH
                     , ansi-terminal
                     , async >= 2.0.1.5
                     , base >=4.7 && <4.8
                     , data-default >= 0.5.3
                     , hspec >=2.1 && <3
                     , time >= 1.4.2
  hs-source-dirs:      lib
                     , test
  default-language:    Haskell2010