What's the easiest way to provide an additional dependency?

I have a small oasis library that I am building and my code depends on in a sexplib

completely irrelevant way. Is there a way that I can provide a way for the users of this library to choose whether they want the additional functionality that comes with the dependency, and also easily maintain my code with as little duplication as possible.

Also, cppo

it probably doesn't make sense as it has a lot of dependency onsexplib

+3


source to share


1 answer


One way is to move all sexplib-dependent code into a separate module and package it as a separate ocamlfind (sub) package - it could be a separate cma or just a regular cmo.



+2


source







All Articles