Ocaml Yaml Extracting Value using a Key

Briefly interjecting here: there are quite a few such cases that can be surprising to beginners. The OCaml parser is generally very permissive when it comes to whitespace. I strongly encourage you to try using ocamlformat, since it tends to format files in a way that makes it much clearer how OCaml will interpret them.

Welcome to OCaml :slightly_smiling_face:

2 Likes