-
Notifications
You must be signed in to change notification settings - Fork 550
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
Add ppx_version support to allocation functor; use in more places #6781
Conversation
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.
Approved, but please make the bin_reader_t
/bin_t
changes before merging.
src/lib/allocation_functor/make.ml
Outdated
(* TODO: does these last two need wrapped as well? *) | ||
let bin_reader_t = M.bin_reader_t | ||
|
||
let bin_t = M.bin_t |
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.
As mentioned on discord, we should just bundle these up as needed:
let bin_reader_t = { read = bin_read_t; vtag_read = __bin_read_t__ }
let bin_t = { shape = bin_shape_t; writer = bin_writer_t; reader = bin_reader_t }
The Bin_prot.Utils.Of_minimal
functor should also do this for you, if you'd prefer that route.
…oned' into feature/allocation-functor-versioned
Closes #6719