@@ -4,7 +4,8 @@
44module Obelisk.Command.CLI where
55
66import Control.Monad.Catch (MonadThrow, finally, throwM)
7−import Control.Monad.Reader (MonadIO, liftIO, reader)
7+import Control.Monad.IO.Class (liftIO)
8+import Control.Monad.Reader (MonadIO, asks)
89import Data.List (isInfixOf)
910import Data.Text (Text)
1011import qualified Data.Text as T
@@ -29,7 +30,7 @@ withSpinner
2930 -> m a -- ^ Action to run and wait for
3031 -> m a
3132withSpinner s e f = do
32− verbose <- reader _obelisk_verbose
33+ verbose <- asks _obelisk_verbose
3334 isTerm <- liftIO $ hIsTerminalDevice stdout
3435 -- When running in shell completion, disable the spinner.
3536 inBashCompletion <- liftIO $ isInfixOf "completion" . unwords <$> getArgs