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

Fix #190 Add splitDrive, takeDrive, dropDrive and isDrive #191

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

mpilgrem
Copy link
Member

Also adds related tests in test-suite test.

Also adds related tests in test-suite validity-test, but validity-test (generally, before this change) hangs when run on my Windows 11 machine (so I could not test the tests), and I note that validity-test is excluded from the existing CI.

Also adds an entry in the Change Log and bumps the package version.

@mpilgrem
Copy link
Member Author

The CI is failing because it is out of date. I will add a commit to update the CI to this pull request.

Comment on lines +384 to +385
-- | Split an absolute path into a drive and, perhaps, a path. On POSIX, @/@ is
-- a drive.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On POSIX, @/@ is a drive.

Is it a good idea to have these functions defined for non-windows?
We could put it in the windows-specific code I guess, but I don't have an opinion yet about whether that's a good idea.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-well typed equivalent functions exist for both POSIX and WINDOWS at filepath package: System.FilePath. I think it is sensible to prove well-typed equivalents. I followed that package's Haddock documentation for this package.

Copy link
Collaborator

@NorfairKing NorfairKing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, I only left one question about whether we want these functions to be available on POSIX.

@NorfairKing
Copy link
Collaborator

@mpilgrem Ok, I'll merge this.

@NorfairKing NorfairKing merged commit ac0e447 into commercialhaskell:master Oct 18, 2023
10 checks passed
@mpilgrem mpilgrem deleted the fix190 branch October 18, 2023 18:39
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.

2 participants