Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Conduit.SafeWrite
Synopsis
- safeSinkFile :: forall (m :: Type -> Type). MonadResource m => FilePath -> ConduitT ByteString Void m ()
- atomicConduitUseFile :: forall (m :: Type -> Type) i o a. MonadResource m => FilePath -> (Handle -> ConduitM i o m a) -> ConduitM i o m a
Documentation
Arguments
:: forall (m :: Type -> Type). MonadResource m | |
=> FilePath | Final filename |
-> ConduitT ByteString Void m () |
Write to file finalname
using a temporary file and atomic move.
The file is only written if the sink runs to completion without errors. Any form of early termination will cause the output to be removed.
This function is deprecated in favor of SinkFileCautious