Skip to content

Commit 486dfd5

Browse files
andreiburdusagithub-actionsrv-jenkins
authored
kore-repl: call warnIfLowProductivity before throwing ExitSuccess or ExitFailure (#2581)
* Call warnIfLowProductivity before throwing ExitSuccess or ExitFailure * Format with fourmolu * Rebuild Co-authored-by: github-actions <[email protected]> Co-authored-by: rv-jenkins <[email protected]>
1 parent cb2c54e commit 486dfd5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

kore/src/Kore/Repl/Interpreter.hs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ import Kore.Internal.TermLike (
139139
)
140140
import qualified Kore.Internal.TermLike as TermLike
141141
import qualified Kore.Log as Log
142+
import Kore.Log.WarnIfLowProductivity (warnIfLowProductivity)
142143
import Kore.Reachability (
143144
ClaimState (..),
144145
ClaimStateTransformer (..),
@@ -305,8 +306,12 @@ replInterpreter0 printAux printKore replCmd = do
305306
output
306307
case shouldContinue of
307308
Continue -> pure Continue
308-
SuccessStop -> liftIO exitSuccess
309-
FailStop -> liftIO . exitWith $ ExitFailure 2
309+
SuccessStop -> do
310+
warnIfLowProductivity
311+
liftIO exitSuccess
312+
FailStop -> do
313+
warnIfLowProductivity
314+
liftIO . exitWith $ ExitFailure 2
310315
where
311316
-- Extracts the Writer out of the RWST monad using the current state
312317
-- and updates the state, returning the writer output along with the

0 commit comments

Comments
 (0)