Skip to content
Snippets Groups Projects
Commit 1c0d8ddb authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Warn that inDir is not thread-safe.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 137075dc
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,9 @@ withTempFileName tmpDir template action =
(\(name, h) -> hClose h >> action name)
-- | Executes the action in the specified directory.
--
-- Warning: This operation is NOT thread-safe, because current
-- working directory is a process-global concept.
inDir :: Maybe FilePath -> IO a -> IO a
inDir Nothing m = m
inDir (Just d) m = do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment