Copyright | © 2015-2019 Stack Builders Inc. |
---|---|
License | MIT |
Maintainer | Stack Builders <hackage@stackbuilders.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Provides functionality to dump the contents of a Lazy ByteString to a file.
Synopsis
- atomicWriteFile :: FilePath -> ByteString -> IO ()
- atomicWriteFileWithMode :: FileMode -> FilePath -> ByteString -> IO ()
Documentation
:: FilePath | The path where the file will be updated or created |
-> ByteString | The content to write to the file |
-> IO () |
Creates or modifies a file atomically on POSIX-compliant systems while preserving permissions.
atomicWriteFileWithMode Source #
:: FileMode | The mode to set the file to |
-> FilePath | The path where the file will be updated or created |
-> ByteString | The content to write to the file |
-> IO () |
Creates or modifies a file atomically on POSIX-compliant systems and updates permissions