aboutsummaryrefslogtreecommitdiff
path: root/hsm-stream/Test/Stream.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hsm-stream/Test/Stream.hs')
-rw-r--r--hsm-stream/Test/Stream.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/hsm-stream/Test/Stream.hs b/hsm-stream/Test/Stream.hs
new file mode 100644
index 0000000..010ebcc
--- /dev/null
+++ b/hsm-stream/Test/Stream.hs
@@ -0,0 +1,8 @@
+import Control.Concurrent (threadDelay)
+import Data.Function ((&))
+import Effectful (liftIO, runEff)
+import Hsm.Log (Severity (Info), runLog)
+import Hsm.Stream (runStream, startStream)
+
+main :: IO ()
+main = (startStream >> liftIO (threadDelay $ maxBound @Int)) & runStream True & runLog @"stream" Info & runEff