Upstream software project

ghc-atomic-write

Haskell atomic-write library development files

About ghc-atomic-write

Haskell atomic-write library development files

This project links 10 native package records across 3 recorded operating-system releases. Compare the retained versions and architectures below, then open the package for your own release.

These are catalog observations, not a guarantee of installation, compatibility, or upstream support.

Project pictures and package coverage

Fedora 43: 4 package records; Fedora 44: 4 package records; openSUSE Leap 15.6: 2 package records. Catalog coverage diagram, not an application screenshot.ghc-atomic-write: recorded package coverageFedora 434 recordsFedora 444 recordsopenSUSE Leap 15.62 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
ghc-atomic-write
Publisher
Not authoritatively mapped
Native package records
10
Operating systems
fedora-43, fedora-44, opensuse-leap-15-6
License expression
MIT
Source repository
Not reported

Source-reported description

The fullest retained description is shown with its source. Distribution packaging descriptions may include downstream details.

Atomically write to a file on POSIX-compliant systems while preserving permissions. On most Unix systems, `mv` is an atomic operation. This makes it simple to write to a file atomically just by using the mv operation. However, this will destroy the permissions on the original file. This library does the following to preserve permissions while atomically writing to a file: * If an original file exists, take those permissions and apply them to the temp file before `mv`ing the file into place. * If the original file does not exist, create a following with default permissions (based on the currently-active umask). This way, when the file is `mv`'ed into place, the permissions will be the ones held by the original file. This library is based on similar implementations found in common libraries in Ruby and Python: * <http://apidock.com/rails/File/atomic_write/class Ruby on Rails includes a similar method called atomic_write> * <https://github.com/chef/chef/blob/c4631816132fcfefaba3d123a1d0dfe8bc2866bb/lib/chef/file_content_management/deploy/mv_unix.rb#L23:L71 Chef includes atomic update functionality> * <https://github.com/sashka/atomicfile There is a python library for atomically updating a file> To use `atomic-write`, import the module corresponding to the type you wish to write atomically, e.g., to write a (strict) ByteString atomically: > import System.AtomicWrite.Writer.ByteString Then you can use the atomicWriteFile function that accepts a `FilePath` and a `ByteString`, e.g.: > atomicWriteFile myFilePath myByteString.

Description source

Packages by operating system

Compare recorded versions, then open a package for dependency, file, checksum, and repository evidence. Version strings are distribution-specific, not a ranking of newer software.

Fedora 43

  1. Package ghc-atomic-write

    43 (Fedora 43) (Unspecified): Atomically write to a file

    0.2.1.1-3.fc43: aarch64 x86_64

    Source: ghc-atomic-write

  2. Package ghc-atomic-write-devel

    43 (Fedora 43) (Unspecified): Haskell atomic-write library development files

    0.2.1.1-3.fc43: aarch64 x86_64

    Source: ghc-atomic-write

  3. Package ghc-atomic-write-doc

    43 (Fedora 43) (Unspecified): Haskell atomic-write library documentation

    0.2.1.1-3.fc43: noarch

    Source: ghc-atomic-write

  4. Package ghc-atomic-write-prof

    43 (Fedora 43) (Unspecified): Haskell atomic-write profiling library

    0.2.1.1-3.fc43: aarch64 x86_64

    Source: ghc-atomic-write

Fedora 44

  1. Package ghc-atomic-write

    44 (Fedora 44) (Unspecified): Atomically write to a file

    0.2.1.1-5.fc44: aarch64 x86_64

    Source: ghc-atomic-write

  2. Package ghc-atomic-write-devel

    44 (Fedora 44) (Unspecified): Haskell atomic-write library development files

    0.2.1.1-5.fc44: aarch64 x86_64

    Source: ghc-atomic-write

  3. Package ghc-atomic-write-doc

    44 (Fedora 44) (Unspecified): Haskell atomic-write library documentation

    0.2.1.1-5.fc44: noarch

    Source: ghc-atomic-write

  4. Package ghc-atomic-write-prof

    44 (Fedora 44) (Unspecified): Haskell atomic-write profiling library

    0.2.1.1-5.fc44: aarch64 x86_64

    Source: ghc-atomic-write

openSUSE Leap 15.6

  1. Package ghc-atomic-write

    leap-15.6 (openSUSE Leap 15.6) (Unspecified): Atomically write to a file

    0.2.0.7-bp156.3.4: aarch64 ppc64le s390x x86_64

    Source: ghc-atomic-write

  2. Package ghc-atomic-write-devel

    leap-15.6 (openSUSE Leap 15.6) (Unspecified): Haskell atomic-write library development files

    0.2.0.7-bp156.3.4: aarch64 ppc64le s390x x86_64

    Source: ghc-atomic-write

Project resources and further reading

Mapping provenance

Only source-backed identity signals create public cross-OS links. A reviewer can later approve or dispute an inferred relationship without rewriting native package history.

No field-level source record is published yet.