scoped-codensity-0.1.0.2: CPS resource allocation but as a Monad and completely safe
Safe HaskellNone
LanguageHaskell2010

Control.Monad.Scoped.Temp

Description

Functions and types for safely working with tempfiles in Scoped blocks

Since: 0.1.0.0

Synopsis

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