Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
inTempDirectory :: IO a -> IO a Source
Run given action with the current working directory set to a temporary directory.
The directory is created before the action is run. After the action has completed the directory is removed and the current working directory is restored to its original value.
inTempDirectoryNamed :: FilePath -> IO a -> IO a Source
Similar to inTempDirectory
, but the temporary directory will have the
specified name.