Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides a simple CLI spinner that interoperates cleanly with the rest of the logging output.
Synopsis
- withSpinner :: (MonadIO m, MonadMask m, CliLog m, HasCliConfig e m) => Text -> m a -> m a
- withSpinnerNoTrail :: (MonadIO m, MonadMask m, CliLog m, HasCliConfig e m) => Text -> m a -> m a
- withSpinner' :: (MonadIO m, MonadMask m, CliLog m, HasCliConfig e m) => Text -> Maybe (a -> Text) -> m a -> m a
Documentation
withSpinner :: (MonadIO m, MonadMask m, CliLog m, HasCliConfig e m) => Text -> m a -> m a Source #
Run an action with a CLI spinner.
withSpinnerNoTrail :: (MonadIO m, MonadMask m, CliLog m, HasCliConfig e m) => Text -> m a -> m a Source #
A spinner that leaves no trail after a successful run.
Use if you wish the spinner to be ephemerally visible to the user.
The 'no trail' property automatically carries over to sub-spinners (in that they won't leave a trail either).