Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- atomicWriteFile :: FilePath -> String -> IO ()
- atomicWithFile :: FilePath -> (Handle -> IO ()) -> IO ()
Documentation
:: 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