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

Remove dependency on bos. #305

Merged
merged 1 commit into from
Feb 15, 2019
Merged

Remove dependency on bos. #305

merged 1 commit into from
Feb 15, 2019

Conversation

dbuenzli
Copy link
Contributor

Tools like odoc at the roots of the eco-system should be lean on deps. This removes one of them.

In this case it seems only Bos.File.read was being used. I added something that is functionally equivalent.

@aantron
Copy link
Contributor

aantron commented Feb 15, 2019

It looks like the replacement code should use Result.Ok instead of Ok, for 4.02 compatibility.

src/odoc/fs.ml Outdated Show resolved Hide resolved
@dbuenzli dbuenzli force-pushed the remove-bos-dep branch 2 times, most recently from 301672d to 763b2db Compare February 15, 2019 09:18
@dbuenzli
Copy link
Contributor Author

It looks like the replacement code should use Result.Ok instead of Ok, for 4.02 compatibility.

A bit odd there were quite a few other {Error,Ok} lying around that weren't prefixed. I don't think bos did anything special for that. The patch now prefix them aswell.

@aantron aantron merged commit 8316914 into ocaml:master Feb 15, 2019
@aantron
Copy link
Contributor

aantron commented Feb 15, 2019

Agreed, haven't looked into what's happening there.

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants