Relative Content

Tag Archive for ocamlocaml-dune

OCaml error during after build when accepting command line input

I’m currently trying to learn OCaml via the “Real World OCaml: Functional Programming for the Masses” textbook. I’ve reached the point of trying to build my first executable after playing inside utop, but the program keeps crashing in the following manner. The code itself is the exact same from the book –

Include Non-OCaml/Reason Files in Dune Build?

I’m new to OCaml and Dune, and I’m trying to set up a basic project with test cases. I want my test module to be able to read in text files from a subdirectory and process the input of those files. However, although I’m reading the Dune documentation, I’m having trouble finding the right stanzas to tell Dune to include a directory with no .ml files in it.