paurkedal / ocaml-caqti

Cooperative-threaded access to relational data
https://paurkedal.github.io/ocaml-caqti/index.html
GNU Lesser General Public License v3.0
299 stars 36 forks source link

running example in dune exec ./examples/bikereg.exe #44 #80

Closed idkjs closed 2 years ago

idkjs commented 2 years ago

After installing I am trying to run dune exec ./examples/bikereg.exe and get the following error:

❯ dune exec ./examples/bikereg.exe
File "caqti/testlib/testlib.ml", line 56, characters 22-27:
56 |     Arg.(value @@ opt conv' (Some Logs.Info) @@ info ~doc ~env ["log-level"])
                           ^^^^^
Error: This expression has type
         ?docv:string ->
         (string -> ('a, string) result) * 'a printer -> 'a converter
       but an expression was expected of type
         'b converter = 'b parser * 'b printer

How might I resolve this. Thank you and thanks for sharing.

Also, it seems like some Cmdliner call are deprectated. I have updated them and am happy to make a PR if you would like it.

paurkedal commented 2 years ago

Yes, the examples and tests are written for cmdliner <1.1.0, but upgrading is first on my list now after the release, so you may also just wait a day, unless you have time right away.