| Copyright | (c) Pedro Yamada |
|---|---|
| License | MIT |
| Maintainer | Pedro Yamada <tacla.yamada@gmail.com> |
| Stability | stable |
| Portability | non-portable (not tested on multiple environments) |
| Safe Haskell | None |
| Language | Haskell2010 |
System.Console.Questioner.ProgressIndicators
Description
Shamefully steals ideas from modules like js and `go-spin`.
Documentation
data ProgressIndicator Source
Constructors
| BarIndicator ThreadId (MVar Double) | |
| SpinnerIndicator ThreadId |
stopIndicator :: ProgressIndicator -> IO () Source
updateIndicator :: ProgressIndicator -> Double -> IO () Source
newtype ProgressBarTheme Source
Constructors
| ProgressBarTheme (Double -> IO ()) |
type SpinnerTheme = String Source
spinner :: SpinnerTheme -> Int -> String -> IO ProgressIndicator Source
simple1Spinner :: Int -> String -> IO ProgressIndicator Source
dots7Spinner :: Int -> String -> IO ProgressIndicator Source
dots6Spinner :: Int -> String -> IO ProgressIndicator Source
dots5Spinner :: Int -> String -> IO ProgressIndicator Source
dots4Spinner :: Int -> String -> IO ProgressIndicator Source
dots3Spinner :: Int -> String -> IO ProgressIndicator Source
dots2Spinner :: Int -> String -> IO ProgressIndicator Source
dots1Spinner :: Int -> String -> IO ProgressIndicator Source
simple9Spinner :: Int -> String -> IO ProgressIndicator Source
simple8Spinner :: Int -> String -> IO ProgressIndicator Source
simple7Spinner :: Int -> String -> IO ProgressIndicator Source
simple6Spinner :: Int -> String -> IO ProgressIndicator Source
simple5Spinner :: Int -> String -> IO ProgressIndicator Source
simple4Spinner :: Int -> String -> IO ProgressIndicator Source
simple3Spinner :: Int -> String -> IO ProgressIndicator Source
simple2Spinner :: Int -> String -> IO ProgressIndicator Source