Export/import data in OCaml

Another interesting option could be the Umarshal module that was recently shipped with the Unison file sync tool. I took a look at the code and it looks fairly self-contained to me; could probably be extracted pretty easily. The cool thing about it is that it aims to be an almost drop-in replacement for OCaml’s Marshal module, except type-safe and stable across OCaml versions. It can also handle variant types, which few other serialization systems can.

3 Likes