[Git][ghc/ghc][wip/T24040-ghci-timeout-squashed] just embarrassing...
Hassan Al-Awwadi (@hassan.awwadi)
gitlab at gitlab.haskell.org
Thu Feb 8 21:44:43 UTC 2024
Hassan Al-Awwadi pushed to branch wip/T24040-ghci-timeout-squashed at Glasgow Haskell Compiler / GHC
Commits:
223c686b by Hassan Al-Awwadi at 2024-02-08T22:43:22+01:00
just embarrassing...
- - - - -
1 changed file:
- ghc/GHCi/UI.hs
Changes:
=====================================
ghc/GHCi/UI.hs
=====================================
@@ -1116,7 +1116,7 @@ instance Exception GhciTimedOut
-- | Wraps a single run input action into a timout action, if the timelimit field has been set.
-- Otherwise it just runs the action without doing anything.
-- See Note [Where to Time]
-withTimeLimit :: (MonadIO m, MonadCatch m, GhciMonad m) => m (Maybe Bool) -> m (Maybe bool)
+withTimeLimit :: (MonadIO m, MonadCatch m, GhciMonad m) => m (Maybe Bool) -> m (Maybe Bool)
withTimeLimit cmd = do
maybe_limit <- time_limit <$> getGHCiState
case maybe_limit of
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/223c686b5422da6b74c81069c016b7bdee6374e8
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/223c686b5422da6b74c81069c016b7bdee6374e8
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240208/f3834b83/attachment.html>
More information about the ghc-commits
mailing list