futhark-0.23.1: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Futhark.Util.ProgressBar

Description

Facilities for generating and otherwise handling pretty-based progress bars.

Synopsis

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.

Constructors

ProgressBar 

Fields

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.