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 <>
parent 137075dc
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment