add waitForTermination to process package ?

Simon Michael simon at
Tue Feb 9 13:52:20 EST 2010

happstack-state has this function:

which I find handy. Here's what I use it for:

    tid <- forkIO $ server opts args l
    putStrLn "starting web browser"
    openBrowserOn homeurl
    putStrLn "shutting down web server..."
    killThread tid
    putStrLn "shutdown complete"

I'd like to not depend on happstack just for this. Could it be added to System.Process ?

Best - Simon

More information about the Libraries mailing list