packages feed

ascii-progress 0.1.0.0 → 0.1.0.1

raw patch · 1 files changed

+26/−2 lines, 1 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ascii-progress.cabal view
@@ -1,7 +1,31 @@ name:                ascii-progress-version:             0.1.0.0+version:             0.1.0.1 synopsis:            A simple progress bar for the console.--- description:         +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