darcs

Issue 2580 task: take advantage of directory, filepath and temporary librares to simplify own code

Title task: take advantage of directory, filepath and temporary librares to simplify own code
Priority wishlist Status resolved
Milestone Resolved in
Superseder Nosy List gh, jaredj
Assigned To
Topics FilePath, ProbablyEasy

Created on 2018-03-24.22:59:07 by gh, last changed 2023-07-16.20:25:12 by bfrk.

Messages
msg20019 (view) Author: gh Date: 2018-03-24.22:59:02
Following http://bugs.darcs.net/patch1668 , we now depend on:

* https://hackage.haskell.org/package/directory-1.2.6.2
* https://hackage.haskell.org/package/filepath-1.4.1.0
* https://hackage.haskell.org/package/temporary-1.2.0.4

These dependency updates (and previous ones) make available functions
that seem to be duplicated in our own codebase, for instance,
makeAbsolute / ioAbsolute, or withCurrentDirectory:

* https://hub.darcs.net/darcs/darcs-screened/browse/src/Darcs/Util/Lock.hs
* https://hub.darcs.net/darcs/darcs-screened/browse/src/Darcs/Util/File.hs
* https://hub.darcs.net/darcs/darcs-screened/browse/src/Darcs/Util/Path.hs

We should see how we can use more exernal code and get rid of some of
our own.
msg23600 (view) Author: bfrk Date: 2023-07-16.20:25:12
Marking as (mostly) resolved. I have made hundreds of patches to fix 
this over the years. However, some of the examples given below are 
actually invalid, for instance ioAbsolute is not available elsewhere, 
at least not with the semantics we need.
History
Date User Action Args
2018-03-24 22:59:07ghcreate
2018-11-26 10:51:31koweysetpriority: wishlist
status: unknown -> needs-implementation
2023-07-16 20:25:12bfrksetstatus: needs-implementation -> resolved
messages: + msg23600