haskell / haskell/file-io

Add atomicWriteFile

Open
#35 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
25
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Now that we have `openTempFile`, it should be straightforward to implement `atomicWriteFile` as in [`atomic-write`](https://hackage.haskell.org/package/atomic-write), which works by creating a temporary file and then moving it to the final location.

Maybe it should even be the default mode, replacing existing `writeFile`?..

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.