cautious-file-0.1.5: Ways to write a file cautiously, to reduce the chances of problems such as data loss due to crashes or power failuresSource codeContentsIndex
System.IO.Cautious
Description

It is recommended to write

import Prelude hiding (writeFile)

when importing this module.

Synopsis
writeFile :: FilePath -> String -> IO ()
writeFileL :: FilePath -> ByteString -> IO ()
writeFileWithBackup :: IO () -> FilePath -> String -> IO ()
writeFileWithBackupL :: IO () -> FilePath -> ByteString -> IO ()
Documentation
writeFile :: FilePath -> String -> IO ()Source
writeFileL :: FilePath -> ByteString -> IO ()Source
writeFileWithBackup :: IO () -> FilePath -> String -> IO ()Source
Backs up the old version of the file with backup. backup must not fail if there is no old version of the file.
writeFileWithBackupL :: IO () -> FilePath -> ByteString -> IO ()Source
Backs up the old version of the file with backup. backup must not fail if there is no old version of the file.
Produced by Haddock version 2.6.1