aboutsummaryrefslogtreecommitdiff
path: root/hsm-stream/Test/Stream.hs
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-01-03 00:26:51 +0000
committerPaul Oliver <contact@pauloliver.dev>2026-01-03 03:42:43 +0000
commit864a1d2a22580a33b5e928734fd256c2133fb672 (patch)
treef164047133c293ae768112a6aad7eaab5df53401 /hsm-stream/Test/Stream.hs
parentf7f11acafe0a404fa218c13832e32fce574ae0f6 (diff)
Adds camera streaming to frontend
Diffstat (limited to 'hsm-stream/Test/Stream.hs')
-rw-r--r--hsm-stream/Test/Stream.hs15
1 files changed, 11 insertions, 4 deletions
diff --git a/hsm-stream/Test/Stream.hs b/hsm-stream/Test/Stream.hs
index 010ebcc..327d2e4 100644
--- a/hsm-stream/Test/Stream.hs
+++ b/hsm-stream/Test/Stream.hs
@@ -1,8 +1,15 @@
-import Control.Concurrent (threadDelay)
import Data.Function ((&))
-import Effectful (liftIO, runEff)
-import Hsm.Log (Severity (Info), runLog)
+import Effectful (runEff)
+import Effectful.Concurrent (runConcurrent, threadDelay)
+import Effectful.Fail (runFailIO)
+import Hsm.Log (Severity (Trace), runLogs)
import Hsm.Stream (runStream, startStream)
main :: IO ()
-main = (startStream >> liftIO (threadDelay $ maxBound @Int)) & runStream True & runLog @"stream" Info & runEff
+main =
+ (startStream >> threadDelay (maxBound @Int))
+ & runStream
+ & runLogs @'["gst", "stream"] Trace
+ & runConcurrent
+ & runFailIO
+ & runEff