summaryrefslogtreecommitdiffhomepage
path: root/Role/Watcher.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-04-26 14:23:37 -0400
committerJoey Hess <joeyh@joeyh.name>2017-04-26 14:23:37 -0400
commit6591e2b974ac22cbc2a06141edef76a775726e11 (patch)
tree5645836082da23127ae9bb7517c66edf539f9ef3 /Role/Watcher.hs
parente741f206be605647f360c38c5b833a2218681e20 (diff)
downloaddebug-me-6591e2b974ac22cbc2a06141edef76a775726e11.tar.gz
have server relay Devloper messages to other Developers
Diffstat (limited to 'Role/Watcher.hs')
-rw-r--r--Role/Watcher.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Role/Watcher.hs b/Role/Watcher.hs
index ddffa79..c13234f 100644
--- a/Role/Watcher.hs
+++ b/Role/Watcher.hs
@@ -8,19 +8,19 @@ import SessionID
import Control.Concurrent.STM
import Control.Concurrent.STM.TMChan
-import Role.Developer (run', processSessionStart, getUserMessage, emitOutput)
+import Role.Developer (run', processSessionStart, getServerMessage, emitOutput)
run :: WatchOpts -> IO ()
run = run' watcher . watchUrl
-watcher :: TMChan (Message Entered) -> TMChan (Message Seen) -> SessionID -> IO ()
+watcher :: TMChan (Message Entered) -> TMChan LogMessage -> SessionID -> IO ()
watcher _ichan ochan _ = inRawMode $ do
(st, startoutput) <- processSessionStart ochan nullLogger
emitOutput startoutput
go st
where
go st = do
- v <- atomically $ getUserMessage ochan st
+ v <- atomically $ getServerMessage ochan st
case v of
Nothing -> return ()
Just (o, _msg) -> do