Taking over maintainership of cautious-file (or does anyone know of an alternative?)

The cautious-file package http://hackage.haskell.org/package/cautious-file has not been updated by the maintainer, Robin Green, since 2013 (though there have been a few Hackage trustee updates since then). The linked source repository was hosted on patch-tag.com and no longer exists. I tried contacting the maintainer on January 25 but have not heard back. I hereby announce my intention to take over as maintainer of the package. (As a side note, as far as I know my diagrams-haddock package is the only thing on Hackage that depends on it.) Alternatively, if anyone knows of a different, actively maintained package that provides similar functionality, I'd love to hear about it! -Brent

Based on https://packdeps.haskellers.com/reverse/cautious-file http://packdeps.haskellers.com/reverse/cautious-file the only other dependency is tbox, which haven't been updated since 2010. I think we don't need to wait very long on this, yethttps://github.com/greenrd https://github.com/greenrd have been active in the past year, hopefully these emails reach him. - Oleg On 13.2.2020 13.48, Brent Yorgey wrote:
The cautious-file package
http://hackage.haskell.org/package/cautious-file
has not been updated by the maintainer, Robin Green, since 2013 (though there have been a few Hackage trustee updates since then). The linked source repository was hosted on patch-tag.com http://patch-tag.com and no longer exists. I tried contacting the maintainer on January 25 but have not heard back.
I hereby announce my intention to take over as maintainer of the package. (As a side note, as far as I know my diagrams-haddock package is the only thing on Hackage that depends on it.)
Alternatively, if anyone knows of a different, actively maintained package that provides similar functionality, I'd love to hear about it!
-Brent
_______________________________________________ Libraries mailing list Libraries@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries

Tangentially, note that `cautious-file` has drawbacks: * It is not async-exception safe and may leak file descriptors. It uses `handleToFd` without proper exception handling (`bracket`). * It does not `fsync` the directory in which the file is, meaning that you may still experience data loss on computer crashes. `unliftio` provides actively maintained versions of most of what `cautious-file` does, addresses those drawbacks and is well-tested against crashes: https://hackage.haskell.org/package/unliftio-0.2.12/docs/UnliftIO-IO-File.ht... For example, `writeBinaryFileDurableAtomic`. Niklas

Perfect, thanks! I will try switching over to use unliftio. Assuming it
meets my needs --- and I see no reason why it won't --- I withdraw my
intention to take over cautious-file.
-Brent
On Thu, Feb 13, 2020 at 10:43 AM Niklas Hambüchen
Tangentially, note that `cautious-file` has drawbacks:
* It is not async-exception safe and may leak file descriptors. It uses `handleToFd` without proper exception handling (`bracket`). * It does not `fsync` the directory in which the file is, meaning that you may still experience data loss on computer crashes.
`unliftio` provides actively maintained versions of most of what `cautious-file` does, addresses those drawbacks and is well-tested against crashes:
https://hackage.haskell.org/package/unliftio-0.2.12/docs/UnliftIO-IO-File.ht...
For example, `writeBinaryFileDurableAtomic`.
Niklas
participants (3)
-
Brent Yorgey
-
Niklas Hambüchen
-
Oleg Grenrus