diff options
author | Paul Oliver <contact@pauloliver.dev> | 2025-01-16 19:22:18 -0800 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2025-01-24 16:36:25 -0800 |
commit | f912485e9612623888e3e032fb975771c22d2b16 (patch) | |
tree | 01a198647531152d974d4468ae9e558b7689bf2f /hsm-dummy-pulser | |
parent | c18d30706ce647a7b640d73514eecb0aa442873c (diff) |
Cleans excessive type annotations
Diffstat (limited to 'hsm-dummy-pulser')
-rw-r--r-- | hsm-dummy-pulser/Main.hs | 4 |
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 |