terminal-progress-bar

A progress bar in the terminal

https://github.com/roelvandijk/terminal-progress-bar

LTS Haskell 23.27:0.4.2
Stackage Nightly 2025-07-13:0.4.2
Latest on Hackage:0.4.2

See all snapshotsterminal-progress-bar appears in

BSD-3-Clause licensed and maintainedbyRoel van Dijk
This version can be pinned in stack with:terminal-progress-bar-0.4.2@sha256:26e89ae1396e298e799035d916836f40769450a23d2b0deffe7a30f1ccdf46c0,2257

Module documentation for 0.4.2

Used by 1 package inlts-23.17(full list with versions):

A progress bar conveys the progress of a task. This packageimplements a progress bar that is displayed in a terminal.

See the moduleSystem.ProgressBar to get started or look at theterminal-progress-bar-example package.

The animated progress bar depends entirely on the interpretation ofthe carriage return character ('\r'). If your terminal interpretsit as something else than "move cursor to beginning of line", theanimation won't work.

Changes

0.4.2

  • Fixed divide by zero error in remainingTime label (thanks to daniel-chambers).

0.4.1

  • Added styleOnComplete field to Style record. Defaults toWriteNewLine. Gives the ability to clear the progress bar oncefinished.

  • Added this changelog.

0.4.0.2

  • Improved documentation