headroom-0.3.1.0: License Header Manager

Copyright(c) 2019-2020 Vaclav Svejcar
LicenseBSD-3-Clause
Maintainervaclav.svejcar@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Headroom.UI.Progress

Description

This component displays progress in format [CURR of TOTAL].

Synopsis

Documentation

data Progress Source #

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

Constructors

Progress !Int !Int 
Instances
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

zipWithProgress Source #

Arguments

:: [a]

list to zip with progress

-> [(Progress, a)]

zipped result

Zips given list with the progress info.

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