Safe Haskell | None |
---|---|
Language | Haskell2010 |
Printing progress bars.
Synopsis
- data Progress a = Progress {}
- initProgress :: Num a => a -> Progress a
- incProgress :: (Num a, Show a) => Progress a -> Progress a
- incProgressErrors :: (Num a, Show a) => Progress a -> Progress a
- showProgress :: Text -> Int -> Color -> Progress Int -> Text
- data Rewrite
- allowRewrite :: (MonadIO m, MonadMask m) => Bool -> (Rewrite -> m a) -> m a
- putTextRewrite :: MonadIO m => Rewrite -> Text -> m ()
Progress
Processing progress of any thing.
initProgress :: Num a => a -> Progress a Source #
Initialise null progress.
Printing
Passing this object allows returning caret and replace text in line.
Only functions which has this thing can do that because being
interleaved with putTextLn
printing caret symbol produced garbage.