| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cardano.Logging.Utils
Synopsis
- threadLabelMe :: String -> IO ()
- runInLoop :: IO () -> (SomeException -> IO ()) -> Word -> Word -> IO ()
- showT :: Show a => a -> Text
- tryEvalNF :: NFData a => a -> IO (Either SomeException a)
- showTReal :: RealFloat a => a -> Text
- excludeAsyncExceptions :: SomeException -> Maybe SomeException
- showTHex :: Integral a => a -> Text
Documentation
threadLabelMe :: String -> IO () Source #
runInLoop :: IO () -> (SomeException -> IO ()) -> Word -> Word -> IO () Source #
Run an IO action which may throw an exception in a loop. On exception, the action will be re-run after a pause. That pause doubles which each exception, but is reset when the action runs long enough.
showT :: Show a => a -> Text Source #
Convenience function for a Show instance to be converted to text immediately
excludeAsyncExceptions :: SomeException -> Maybe SomeException Source #
Helper functions to force trace + metric values in a controlled section of code