uni-reactor-2.2.1.0: Reactors for the uniform workbench
Reactor.WithDir
Description
A function for changing directories in a thread-safe way.
We use an MSem to lock the current directory. This means that withDir can be nested without deadlock (presumably the user knows what he's doing).
withDir :: FilePath -> IO a -> IO aSource