ascii-progress: A simple progress bar for the console.
A simple Haskell progress bar for the console. Heavily borrows from TJ
Holowaychuk's Node.JS project 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
@@
github
Downloads
- ascii-progress-0.1.0.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.1.0, 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.2.1.2, 0.3.0.0, 0.3.0.1, 0.3.1.0, 0.3.2.0, 0.3.3.0 |
---|---|
Dependencies | ansi-terminal, async (>=2.0.1.5), base (>=4.7 && <4.8), data-default (>=0.5.3), MissingH, time (>=1.4.2) [details] |
License | GPL-2.0-only |
Copyright | (c) 2015 Pedro Tacla Yamada |
Author | Pedro Tacla Yamada |
Maintainer | tacla.yamada@gmail.com |
Category | System |
Home page | https://github.com/yamadapc/haskell-ascii-progress |
Uploaded | by yamadapc at 2015-02-05T00:18:14Z |
Distributions | LTSHaskell:0.3.3.0, NixOS:0.3.3.0, Stackage:0.3.3.0 |
Reverse Dependencies | 5 direct, 23 indirect [details] |
Executables | example |
Downloads | 16340 total (15 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2015-02-05 [all 1 reports] |