I’m new to Ocaml and I’m trying to go through the Real World OCaml book to learn. I’m getting the following errors compiling the dictionary module and the dlist module from Chapter 8: Imperative Programming:
I’ve copied the code from the second version of the book (http://dev.realworldocaml.org/imperative-programming.html) which is currently in beta. I’m thinking it could be because of a version mismatch or something along those lines. I’m using version 4.05.0 of ocaml.
Here are the contents of my dune file which I’m using to compile to modules.
Looking at the code I can’t tell why it’s producing these errors. I’d be happy to provide any other relevant information. Any advice or suggestions on how to fix these errors would be greatly appreciated!
As I’ve indicated in https://github.com/realworldocaml/book/pull/3053#issuecomment-516441726 the README.md doc has to be updated too (using mdx or manually). We are in the process of refreshing the tooling a bit so that this kind of update is done automatically by the CI so that these kinds of confusion do not happen anymore.