Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Functions and types for safely working with tempfiles in Scoped
blocks
Synopsis
- tempFile :: MonadUnliftIO m => FilePath -> String -> Scoped s m (FilePath, ScopedHandle s)
- systemTempFile :: MonadUnliftIO m => String -> Scoped s m (FilePath, ScopedHandle s)
Allocating a temporary files in a Scoped
block
tempFile :: MonadUnliftIO m => FilePath -> String -> Scoped s m (FilePath, ScopedHandle s) Source #
Like withTempFile
but for Scoped
systemTempFile :: MonadUnliftIO m => String -> Scoped s m (FilePath, ScopedHandle s) Source #
Like withSystemTempFile
but for Scoped