I am using the config-file package in Ocaml. It looks like it should be able to represent something like a “string option”, but the examples file only lists simple types, or completely custom classes.
How do I represent a simple option type using this library?
There is already a pre-defined string option type. Look in section “Predefined cp classes” here: http://config-file.forge.ocamlcore.org/ocamldoc/Config_file.html
Good luck,