aboutsummaryrefslogtreecommitdiff
path: root/hsm-command/Hsm
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-01-14 15:42:46 -0800
committerPaul Oliver <contact@pauloliver.dev>2025-01-17 19:16:43 -0800
commite1fa79eb713c249055fb23fcc6684a94f77d8368 (patch)
tree5ac5d27b5ffd94ba9591922e7dcfcdb4d0dc198c /hsm-command/Hsm
parent00ad7b9a1c798e611a0c0b7fcbfa5ee76c2f39c4 (diff)
Adds GPIO effect and dummy blinker service
Diffstat (limited to 'hsm-command/Hsm')
-rw-r--r--hsm-command/Hsm/Command/Readline.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/hsm-command/Hsm/Command/Readline.hs b/hsm-command/Hsm/Command/Readline.hs
index 3c56453..428ed50 100644
--- a/hsm-command/Hsm/Command/Readline.hs
+++ b/hsm-command/Hsm/Command/Readline.hs
@@ -9,8 +9,9 @@ module Hsm.Command.Readline
import Effectful (Dispatch(Static), DispatchOf, Eff, IOE, (:>))
import Effectful.Dispatch.Static qualified as S
-import Effectful.Log (Log, getLoggerEnv, leLogger, waitForLogger)
+import Effectful.Log (Log)
import Effectful.Resource (Resource, allocate)
+import Hsm.Core.Log (flushLogger)
import System.Console.Haskeline qualified as H
import System.Console.Haskeline.IO qualified as H
@@ -29,9 +30,6 @@ readline = do
Readline hdl <- S.getStaticRep
S.unsafeEff_ $ nextLine hdl
where
- flushLogger :: Eff es ()
- flushLogger = getLoggerEnv >>= S.unsafeEff_ . waitForLogger . leLogger
- --
nextLine :: H.InputState -> IO (Maybe String)
nextLine hdl =
H.queryInput hdl