aboutsummaryrefslogtreecommitdiff
path: root/hsm-command/Hsm/Command/Readline.hs
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-01-14 15:42:46 -0800
committerPaul Oliver <contact@pauloliver.dev>2025-01-24 16:36:18 -0800
commitc18d30706ce647a7b640d73514eecb0aa442873c (patch)
tree35c93aff04e7d9e2153d696f00f2ac478043613f /hsm-command/Hsm/Command/Readline.hs
parent7c360b79ee2e3230e6e5fe76c102dd688f9cf7b9 (diff)
Adds GPIO effect and dummy blinker service
Diffstat (limited to 'hsm-command/Hsm/Command/Readline.hs')
-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