-
Notifications
You must be signed in to change notification settings - Fork 45
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
parent and dirrename should return In MonadThrow m #33
Comments
It's definitely an inconsistency. |
There are two ways to fix that. Let |
Indeed, the magicness of the root directory seems to give us no option but to pick something not great. Putting |
The two options wrt root dir sound like this:
The first one is a more explicit and intuitive handling than the latter. Looks like a better option to me as well though a bit more inconvenient compared to the other one. |
Indeed. I think (1) is explicit and the kind of thing this library is about. |
Throw an exception or return a |
I think it should throw just like all the other functions. It's more flexible and you can always get a |
`isParentOf` does not treat root dir as a parent of itself while `parent` does. Make `parent` fail for root dir.
`isParentOf` does not treat root dir as a parent of itself while `parent` does. Make `parent` fail for root dir.
Should this be considered a duplicate of #18? Can we close it in favor of that issue? |
Closing in favor of #18. Should be resolved in version 0.6.0 |
Should this be fixed?
The text was updated successfully, but these errors were encountered: