Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Facilities for generating and otherwise handling text-based progress bars.
Synopsis
- progressBar :: ProgressBar -> Text
- data ProgressBar = ProgressBar {}
- progressSpinner :: Int -> Text
Documentation
progressBar :: ProgressBar -> Text Source #
Render the progress bar.
data ProgressBar Source #
Information about a progress bar to render. The "progress space"
spans from 0 and up to the progressBarBound
, but can be
visualised in any number of steps.
ProgressBar | |
|
progressSpinner :: Int -> Text Source #
Render a spinner - a kind of progress bar where there is no upper bound because we don't know how long it'll take. You certainly know these from THE INTERNET. The non-negative integer is how many "steps" have been taken. The spinner looks best if this is incremented by one for every call.