diff options
author | Paul Oliver <contact@pauloliver.dev> | 2025-01-14 15:58:56 -0800 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2025-01-16 18:30:09 -0800 |
commit | 00ad7b9a1c798e611a0c0b7fcbfa5ee76c2f39c4 (patch) | |
tree | f2bcbcd0a8b2a3425b8baec668fccc62a4037ac1 /hsm-core/Hsm/Core/Log.hs | |
parent | cc639b06c7126fac7b445d8f778455620d7f8f50 (diff) |
Adds minimal documentation
Diffstat (limited to 'hsm-core/Hsm/Core/Log.hs')
-rw-r--r-- | hsm-core/Hsm/Core/Log.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hsm-core/Hsm/Core/Log.hs b/hsm-core/Hsm/Core/Log.hs index 9f1f357..9bf8b37 100644 --- a/hsm-core/Hsm/Core/Log.hs +++ b/hsm-core/Hsm/Core/Log.hs @@ -9,6 +9,8 @@ import Data.Time.Clock (getCurrentTime) import Effectful (Eff, (:>)) import Effectful.Log (Log, LogLevel, getLoggerIO, logMessage) +-- Helper function allows logging within IO, Useful during `resourcet` +-- allocation and release operations. withLogIO :: Log :> es => Eff es (LogLevel -> Text -> IO ()) withLogIO = do logIO <- getLoggerIO |