Skip to content

Commit 8e88d6c

Browse files
committedJun 27, 2023
Remove debugging actions
1 parent d95b1fb commit 8e88d6c

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed
 

‎src/Reflex/Process/GHCi.hs

-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ ghciWatch p mexpr reload shutdown = do
162162
let reloadEvents = ((() <$ batchedFsEvents) <> reload)
163163

164164
rec g <- ghci p sendExpr reloadEvents shutdown
165-
performEvent_ $ liftIO . appendFile "x" . (<>"\n\n") . show . (take 1 . reverse . Map.elems) <$> _repl_finished g
166165
sendExpr <- delay 0.1 $ fforMaybe (_repl_finished g) $ \finished -> case reverse (Map.elems finished) of
167166
c@(Cmd cmd _ _):_ -> if displayCommand cmd == ":r" && hasErrors c
168167
then Nothing

‎src/Reflex/Process/Repl.hs

-2
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,10 @@ repl runRepl cmds isPrompt = do
182182
new_n <- liftIO $ atomicModifyIORef' n $ \n' -> (succ n', n')
183183
pure $ (new_n, input')
184184
ixedInput <- foldDyn Map.union Map.empty newIxedInput
185-
performEvent_ $ ffor (updated ixedInput) $ liftIO . appendFile "input" . show
186185
proc <- createProcess runRepl $ ProcessConfig
187186
{ _processConfig_stdin = fmapMaybe sendCommands cmds
188187
, _processConfig_signal = never
189188
}
190-
performEvent_ $ ffor (_process_stderr proc) $ liftIO . C8.appendFile "stderr"
191189
pb <- getPostBuild
192190
exited <- performEventAsync $ ffor pb $ \_ cb ->
193191
liftIO $ void $ forkIO $ cb <=< P.waitForProcess $ _process_handle proc

0 commit comments

Comments
 (0)