| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Conduit.SafeWrite
- safeSinkFile :: MonadResource m => FilePath -> Sink ByteString m ()
Documentation
Arguments
| :: MonadResource m | |
| => FilePath | Final filename |
| -> Sink ByteString 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.