module-management-0.20.4: Clean up module imports, split and merge modules

Safe HaskellSafe-Inferred
LanguageHaskell98

Language.Haskell.Modules.Util.Temp

Synopsis

Documentation

withTempDirectory Source

Arguments

:: (MonadIO m, MonadBaseControl IO m) 
=> FilePath

Temp directory to create the directory in

-> String

Directory name template. See openTempFile.

-> (FilePath -> m a)

Callback that can use the directory

-> m a 

Adapted from withTempDirectory to work in MonadIO instances.