Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace system-filepath with path #87

Merged
merged 4 commits into from
Aug 28, 2020
Merged

Replace system-filepath with path #87

merged 4 commits into from
Aug 28, 2020

Conversation

apauley
Copy link
Owner

@apauley apauley commented Aug 6, 2020

hledger-flow started as a collection of bash scripts that I translated into Haskell with the help of Turtle.

Turtle uses the now deprecated system-filepath to represent all paths.

I've had many filepath-related issues in hledger-flow.
They were related to issues such as that 2 instances of the same directory would not be treated as equal, because one could have a trailing slash and the other not.
Another issue that popped up was knowing wether a path is a file or a directory, and if it is absolute or relative.

All of these issues are articulated in the path library:
https://github.com/commercialhaskell/path

This PR switches some usages of system-filepath over to path

@apauley apauley merged commit 31914cf into master Aug 28, 2020
@apauley apauley deleted the path branch August 28, 2020 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant