-
Notifications
You must be signed in to change notification settings - Fork 100
Remove File_path exports. #381
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
Conversation
Signed-off-by: Carl Eastlund <ceastlund@janestreet.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On one hand, I don't like the current status: opening the Ppxlib
module brings many values into scope that are most of the time not used; and the doc of the Ppxlib
module is hard to understand with so many values.
Moreover, this change seems to break some PPXs: at least this and that.
On the other hand, shadowing the File_path
module isn't great when this library is used at the same time as Ppxlib.
Is there something I am missing in favour of this PR, or another solution with less drawbacks?
src/common.mli
Outdated
(** Return the path used in a location. Strips leading "./", uses "" if no location. *) | ||
|
||
val get_default_path : Location.t -> string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doc comment is not associated to the value.
Without ocamlformatting:
(** Return the path used in a location. Strips leading "./", uses "" if no location. *) | |
val get_default_path : Location.t -> string | |
(** Return the path used in a location. Strips leading "./", uses "" if no location. *) | |
val get_default_path : Location.t -> string |
Hey @panglesd,
That's true. I didn't think about how long/unorganized the
@ceastlund will send patch PRs to those two PPXs.
I don't think there's anything you're missing: unless I'm missing something as well, this PR is just meant to remove the inconvenience of shadowing the Another solution with less drawbacks in my opinion could be the following:
|
No, I don't know why we have these functions. It's possible the best path is to just remove them. |
@Gopiandcode wrote on discuss:
I agree that removing |
Signed-off-by: Carl Eastlund <ceastlund@janestreet.com>
861dc2d
to
340e26b
Compare
Pushed a change and retitled the PR. Now removing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me. Thanks for the change! Are you going to send the two patch PRs, @ceastlund, or do you want me to do that?
Btw, just to make sure, I'll ask the |
I'm going to make those changes to |
Do you know when that release of Jane Street is going to take place? I'm asking because we usually also send patches to the public branches of the PPXs we break given that Jane Street tends to do the public releases not that often. |
CHANGES: - Remove `File_path` exports. (ocaml-ppx/ppxlib#381, @ceastlund) - Add `Ppxlib.Expansion_helpers` with name mangling utilities from ppx_deriving (ocaml-ppx/ppxlib#370, @sim642) Signed-off-by: Paul-Elliot <peada@free.fr>
CHANGES: - Remove `File_path` exports. (ocaml-ppx/ppxlib#381, @ceastlund) - Add `Ppxlib.Expansion_helpers` with name mangling utilities from ppx_deriving (ocaml-ppx/ppxlib#370, @sim642) Signed-off-by: Paul-Elliot <peada@free.fr>
CHANGES: - Remove `File_path` exports. (ocaml-ppx/ppxlib#381, @ceastlund) - Add `Ppxlib.Expansion_helpers` with name mangling utilities from ppx_deriving (ocaml-ppx/ppxlib#370, @sim642) Signed-off-by: Paul-Elliot <peada@free.fr>
The
File_path
submodule is tiny, and shadows theFile_path
library. So I moved its code intoCommon
instead.