aboutsummaryrefslogtreecommitdiff
path: root/hsm-dummy-pulser
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-pulser
parente1fa79eb713c249055fb23fcc6684a94f77d8368 (diff)
Cleans excessive type annotations
Diffstat (limited to 'hsm-dummy-pulser')
-rw-r--r--hsm-dummy-pulser/Main.hs4
1 files changed, 0 insertions, 4 deletions
diff --git a/hsm-dummy-pulser/Main.hs b/hsm-dummy-pulser/Main.hs
index 48a5302..d15b616 100644
--- a/hsm-dummy-pulser/Main.hs
+++ b/hsm-dummy-pulser/Main.hs
@@ -32,19 +32,15 @@ pulse = repeatM $ asks period >>= threadDelay
stateRun :: F.FsmState () Int Env Int
stateRun = F.FsmState "run" action
where
- action :: () -> Env -> Int -> F.FsmOutput () Int Env Int
action _ env sta =
if sta < env.pulses
then next
else exit
where
- next :: F.FsmOutput () Int Env Int
next =
F.FsmOutput
(Just $ F.FsmResult sta (succ sta) stateRun)
[(LogInfo, "Sending pulse #" <> pack (show sta))]
- --
- exit :: F.FsmOutput () Int Env Int
exit =
F.FsmOutput
Nothing