diff options
author | Paul Oliver <contact@pauloliver.dev> | 2025-09-12 01:43:15 +0000 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2025-09-17 00:08:37 +0000 |
commit | e71e80377f234d8dd426064c0b00238007ca8422 (patch) | |
tree | 3f4753da3ac065bdb763cf25026b3340f953a83b /hsm-cam | |
parent | a8ac8412e35347769da7c8667d485fbce325af3b (diff) |
Adds `Logs` constraint combinator
Diffstat (limited to 'hsm-cam')
-rw-r--r-- | hsm-cam/Hsm/Cam.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hsm-cam/Hsm/Cam.hs b/hsm-cam/Hsm/Cam.hs index d1f9cd2..dfa7425 100644 --- a/hsm-cam/Hsm/Cam.hs +++ b/hsm-cam/Hsm/Cam.hs @@ -46,7 +46,7 @@ import Hsm.Cam.FFI , stopCameraManager ) import Hsm.Core.Bracket (bracketConst, bracketLiftIO_) -import Hsm.Log (Log, Severity (Attention, Info, Trace), getLevel, logMsg, makeLoggerIO) +import Hsm.Log (Log, Logs, Severity (Attention, Info, Trace), getLevel, logMsg, makeLoggerIO) import MMAP (mapShared, mkMmapFlags, mmap, munmap, protRead) import System.Directory (doesFileExist, removeFile) import System.Environment (setEnv) @@ -120,7 +120,7 @@ fromLibCameraSeverity = INFO -> Info _ -> Attention -runCam :: (IOE :> es, Log "cam" :> es, Log "libcamera" :> es) => Eff (Cam : es) a -> Eff es a +runCam :: (IOE :> es, Logs '["cam", "libcamera"] es) => Eff (Cam : es) a -> Eff es a runCam action = do requestCallbackMVar <- liftIO newEmptyMVar bracketConst loggerAlloc loggerDealloc |