HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleatomic-write-0.2.1.1Haskell2010

System.AtomicWrite.Writer.ByteString.Binary

Provides functionality to dump the contents of a ByteString to a file open in binary mode

  • 2 values
valueatomicWriteFile
  1. :: FilePath

    The path where the file will be updated or created

  2. -> ByteString

    The content to write to the file

  3. -> IO ()
#

Creates or modifies a file atomically on POSIX-compliant systems while preserving permissions. The file is opened in binary mode.

valueatomicWriteFileWithMode
  1. :: FileMode
  2. -> FilePath

    The path where the file will be updated or created

  3. -> ByteString

    The content to write to the file

  4. -> IO ()
#

Creates or modifies a file atomically on POSIX-compliant systems and updates permissions. The file is opened in binary mode.