headroom-0.1.3.0: License Header Manager
Copyright(c) 2019-2020 Vaclav Svejcar
LicenseBSD-3
Maintainervaclav.svejcar@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Headroom.UI.Progress

Description

UI component that allows to display progress in console line interface.

Synopsis

Documentation

data Progress Source #

Progress indication. First argument is current progress, second the maximum value.

Constructors

Progress Int Int 

Instances

Instances details
Eq Progress Source # 
Instance details

Defined in Headroom.UI.Progress

Show Progress Source # 
Instance details

Defined in Headroom.UI.Progress

Display Progress Source # 
Instance details

Defined in Headroom.UI.Progress

Methods

display :: Progress -> Utf8Builder

textDisplay :: Progress -> Text

zipWithProgress :: [a] -> [(Progress, a)] Source #

Zips given list with the progress info.

>>> zipWithProgress ["a", "b"]
[(Progress 1 2,"a"),(Progress 2 2,"b")]