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

ignored-partial-application warning #187

Open
jamesjer opened this issue Jun 27, 2023 · 0 comments
Open

ignored-partial-application warning #187

jamesjer opened this issue Jun 27, 2023 · 0 comments

Comments

@jamesjer
Copy link

When building git HEAD with OCaml 5.0, I see this:

File "utils.ml", line 70, characters 23-73:
70 |            try let _ = List.find (fun n -> Filesystem.exists (n p)) names in true
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 5 [ignored-partial-application]: this function application is partial,
maybe some arguments are missing.

Perhaps the (n p) on line 70 should be (p </> n)? And on line 73, perhaps (fun n -> n (List.hd paths)) should be (fun n -> (List.hd paths) </> n)?

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

No branches or pull requests

1 participant