aboutsummaryrefslogtreecommitdiff
path: root/hsm-dummy-poller/Main.hs
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-01-16 19:22:18 -0800
committerPaul Oliver <contact@pauloliver.dev>2025-01-17 19:16:43 -0800
commite3ea039428545e185b38c5633fe3576ab32f1f8e (patch)
tree56ab8d1248b4387ceab6094305e7a75699c4e393 /hsm-dummy-poller/Main.hs
parente1fa79eb713c249055fb23fcc6684a94f77d8368 (diff)
Cleans excessive type annotations
Diffstat (limited to 'hsm-dummy-poller/Main.hs')
-rw-r--r--hsm-dummy-poller/Main.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/hsm-dummy-poller/Main.hs b/hsm-dummy-poller/Main.hs
index 762d139..9f2fad9 100644
--- a/hsm-dummy-poller/Main.hs
+++ b/hsm-dummy-poller/Main.hs
@@ -27,16 +27,13 @@ data Env = Env
$(deriveFromYaml ''Env)
handle ::
- forall es. (Concurrent :> es, Log :> es, Reader Env :> es)
+ (Concurrent :> es, Log :> es, Reader Env :> es)
=> S.Stream (Eff es) [Int]
-> Eff es ()
handle =
S.fold S.drain . S.mapM (\p -> asks period >>= threadDelay >> handler p)
where
- receiverDomain :: Text
receiverDomain = "receiver"
- --
- handler :: [Int] -> Eff es ()
handler [] = localDomain receiverDomain $ logInfo_ "No pulse received yet"
handler ps =
forM_ ps $ \p ->