Simplify execMuted

This commit is contained in:
CrystalSplitter 2023-12-09 18:04:54 -08:00 committed by Jordan R AW
parent 6339be9b46
commit 586718e49a

View File

@ -254,9 +254,7 @@ exec cmd state@InterpState{_ghci} = do
-- | 'exec', but throw out any messages.
execMuted :: (Monoid a) => T.Text -> InterpState a -> ExceptT DaemonError IO (InterpState a)
execMuted cmd state = do
(newState, _) <- exec cmd state
pure newState
execMuted cmd state = fst <$> exec cmd state
-- | 'exec', but fully clean the message from prompt.
execCleaned