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

Document relation between joinPath and </> #82

Closed
andreasabel opened this issue Nov 2, 2020 · 2 comments
Closed

Document relation between joinPath and </> #82

andreasabel opened this issue Nov 2, 2020 · 2 comments

Comments

@andreasabel
Copy link
Member

I would expect that joinPath[a,b] behaves exactly like a </> b (aka combine a b). Unfortunately, the documentation does not enlighten me on the relationship between joinPath and combine. Is joinPath just a fold using the monoid mempty = ""; mappend = combine?

I would have consulted the source code to clarify my question, but see #81.

Please document the relationship between joinPath and combine.

@andreasabel
Copy link
Member Author

Cloning and grepping the git repo, I find joinPath = foldr combine "". This should be in the docs.

@ndmitchell
Copy link
Contributor

Perfectly reasonable, and also your remark about sources in #81. Note the library is transitioning ownership through #79, so I will wait for the next maintainer to respond properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants