Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions and types for safely working with tempfiles in Scoped
blocks
Since: 0.1.0.0
Synopsis
- tempFile :: forall (m :: Type -> Type) s (ss :: [Type]). MonadUnliftIO m => FilePath -> String -> Scoped (s ': ss) m (FilePath, ScopedHandle s)
- systemTempFile :: forall (m :: Type -> Type) s (ss :: [Type]). MonadUnliftIO m => String -> Scoped (s ': ss) m (FilePath, ScopedHandle s)
Allocating a temporary files in a Scoped
block
tempFile :: forall (m :: Type -> Type) s (ss :: [Type]). MonadUnliftIO m => FilePath -> String -> Scoped (s ': ss) m (FilePath, ScopedHandle s) Source #
Like withTempFile
but for Scoped
Since: 0.1.0.0
systemTempFile :: forall (m :: Type -> Type) s (ss :: [Type]). MonadUnliftIO m => String -> Scoped (s ': ss) m (FilePath, ScopedHandle s) Source #
Like withSystemTempFile
but for Scoped
Since: 0.1.0.0