-
Notifications
You must be signed in to change notification settings - Fork 12
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
Breaking change in patch level release #14
Comments
Not sure what to do about this, but patch level is not even detectable with CPP... |
That change was intended to be a bug fix, and only correct incorrect behavior. Can you give me an example of this change causing breakage? |
Consider e.g. isBoring :: FilePath -> Bool
isBoring p = ".git/" `elem` dirs || "dist/" `elem` dirs
where
dirs = splitDirectories p vs isBoring :: FilePath -> Bool
isBoring p = ".git" `elem` dirs || "dist" `elem` dirs
where
dirs = splitDirectories p The first works for |
Thanks, that's a good counterexample. It looks like our best bet is to revert the change and release a new patch release, would you concur? |
If we stick with the current behavior we should probably deprecate all versions BTW, is there some discussion that motivated this change? |
Issue #3 covers this. There are unfortunately a lot of problems in the library around how it handles issues of this nature. Someone from the FP Complete team will be putting up a public issue and/or blog post about some proposed changes soon, which will hopefully address them all by simplifying the library. |
I'm fine with either way. Personally, I just refrain from changing code at all in patch level releases, not even bug fixes, for the simple reason that you can't CPP on patch level. For the specific case of In https://github.com/hspec/autospec I currently rely on the |
Going forward, an other option would be to deprecate |
Note that I've just announced that these libraries will be deprecated in favor of filepath and directory: https://plus.google.com/+MichaelSnoyman/posts/Ft5hnPqpgEx |
I think that's the right call. Sent from my iPhone
|
I just realized that the semantics of
splitDirectories
changed betweensystem-filepath-0.4.13.1
andsystem-filepath-0.4.13.2
.WTF!
The text was updated successfully, but these errors were encountered: