@@ -24,8 +24,8 @@ import Obelisk.App (MonadObelisk, _obelisk_verbose)
2424-- singleton spinner thread and interact with it in order to print something.
2525withSpinner
2626 :: MonadObelisk m
27− => String -- ^ Text to print alongside the spinner
28− -> Maybe String -- ^ Optional text to print at the end
27+ => Text -- ^ Text to print alongside the spinner
28+ -> Maybe Text -- ^ Optional text to print at the end
2929 -> m a -- ^ Action to run and wait for
3030 -> m a
3131withSpinner s e f = do
@@ -36,14 +36,14 @@ withSpinner s e f = do
3636 let spinnerDisabled = not isTerm || inBashCompletion || verbose
3737 case spinnerDisabled of
3838 True -> do
39− putInfo $ T.pack s
39+ putInfo s
4040 f
4141 False -> do
42− spinner <- liftIO $ dots1Spinner (1000 * 200) s
42+ spinner <- liftIO $ dots1Spinner (1000 * 200) $ T.unpack s
4343 result <- finally f $ do
4444 liftIO $ stopIndicator spinner
4545 case e of
46− Just exitMsg -> putInfo $ T.pack exitMsg
46+ Just exitMsg -> putInfo exitMsg
4747 Nothing -> liftIO $ hFlush stdout
4848 return result
4949