wait for file changes after server has quit

This commit is contained in:
Luite Stegeman 2011-09-06 09:27:19 +02:00
parent 2a8cb7c066
commit 71e1e57615

View File

@ -97,6 +97,7 @@ mainLoop isDevel = forever $ do
ec <- waitForProcess ph
putStrLn $ "Exit code: " ++ show ec
Ex.throwTo watchTid (userError "process finished")
watchForChanges list
try_ :: forall a. IO a -> IO ()
try_ x = (Ex.try x :: IO (Either Ex.SomeException a)) >> return ()