I’m currently trying to use a local library folder with eliom. Directory structure is something like this like this:
project-root
main.eliom
lib/dune -- library name is 'liturgy'
lib/models.ml
Everything builds properly when I do dune build
but if i run make test.byte I get a no implementation available for "liturgy__models.
Errors similar to this were solved by adding packages to SERVER_PACKAGES
but this works for packages, not local dune libraries.
What is the intended way to use a local dune library with eliom?
I think you can add:
<extension module="_build/default/path/to/library.cma"/>
after the line:
%%PACKAGES%%
I think this worked but it started to complain about dependencies of the library instead of the library itself.
I ended up creating a sub-package and that worked.
Side question: the Ocsigen website advertises reason syntax but doesn’t mention how to enable this or if it can be enabled at all. Is this something that’s publicly available?
Thank you!
1 Like
Hi, The Reason syntax was a contribution we got a few years ago. Using Reason syntax should be quite straightforward without many changes. But I don’t think anyone is using that. The documentation with Reason syntax is broken and not maintained. We are considering removing this from the website if no one wants to fix and maintain.
1 Like