Visitar URL original
Document relation between `joinPath` and `</>` · Issue #82 · haskell/filepath · GitHub
Skip to content

Document relation between joinPath and </> #82

Closed

Description

@andreasabel

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.

Activity

  1. andreasabel commented on Nov 2, 2020

    @andreasabel
    MemberAuthor

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

  2. ndmitchell commented on Nov 2, 2020

    @ndmitchell
    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.

  3. added 2 commits that reference this issue on Dec 2, 2021
    21f6043
    9bd9092
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions