aboutsummaryrefslogtreecommitdiff
path: root/hsm-dummy-receiver/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-receiver/Main.hs
parente1fa79eb713c249055fb23fcc6684a94f77d8368 (diff)
Cleans excessive type annotations
Diffstat (limited to 'hsm-dummy-receiver/Main.hs')
-rw-r--r--hsm-dummy-receiver/Main.hs14
1 files changed, 7 insertions, 7 deletions
diff --git a/hsm-dummy-receiver/Main.hs b/hsm-dummy-receiver/Main.hs
index 78b343f..451e9c4 100644
--- a/hsm-dummy-receiver/Main.hs
+++ b/hsm-dummy-receiver/Main.hs
@@ -23,15 +23,15 @@ data Env = Env
$(deriveFromYaml ''Env)
-handle ::
- forall es. Log :> es
- => S.Stream (Eff es) Int
- -> Eff es ()
+handle :: Log :> es => S.Stream (Eff es) Int -> Eff es ()
handle = S.fold S.drain . S.mapM handler
where
- handler :: Int -> Eff es ()
- handler p =
- localDomain "receiver" $ logInfo_ $ "Received pulse #" <> pack (show p)
+ handler =
+ localDomain "receiver"
+ . logInfo_
+ . mappend "Received pulse #"
+ . pack
+ . show
-- Dummy receiver service:
-- Proof of concept. Listens for "pulses" through ZMQ and logs each time one