wait for file changes after server has quit
This commit is contained in:
parent
2a8cb7c066
commit
71e1e57615
@ -97,6 +97,7 @@ mainLoop isDevel = forever $ do
|
|||||||
ec <- waitForProcess ph
|
ec <- waitForProcess ph
|
||||||
putStrLn $ "Exit code: " ++ show ec
|
putStrLn $ "Exit code: " ++ show ec
|
||||||
Ex.throwTo watchTid (userError "process finished")
|
Ex.throwTo watchTid (userError "process finished")
|
||||||
|
watchForChanges list
|
||||||
|
|
||||||
try_ :: forall a. IO a -> IO ()
|
try_ :: forall a. IO a -> IO ()
|
||||||
try_ x = (Ex.try x :: IO (Either Ex.SomeException a)) >> return ()
|
try_ x = (Ex.try x :: IO (Either Ex.SomeException a)) >> return ()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user