| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
System.AtomicWrite.Writer.String
- atomicWriteFile :: FilePath -> String -> IO ()
- atomicWithFile :: FilePath -> (Handle -> IO ()) -> IO ()
Documentation
Arguments
| :: FilePath | The path where the file will be updated or created |
| -> String | The content to write to the file |
| -> IO () |
Creates a file atomically on POSIX-compliant systems while preserving permissions.
atomicWithFile :: FilePath -> (Handle -> IO ()) -> IO () Source
A general version of atomicWriteFile