mfp / ocaml-sqlexpr

Minimalistic syntax extension for type-safe, convenient execution of SQL statements.
Other
86 stars 17 forks source link

Package `sqlexpr.syntax' not found #25

Closed waclena closed 6 years ago

waclena commented 6 years ago

I've installed sqlexpr v0.8.0 via opam.

Attempting to compile your tests/example.ml according to the example fails: ocamlfind ocamlc -package sqlexpr,sqlexpr.syntax -syntax camlp4o -linkpkg -thread -o ex ex.ml ocamlfind: Package sqlexpr.syntax not found (ex.ml is a copy of your tests/example.ml).

Any idea what I'm doing wrong? Thanks!

j0sh commented 6 years ago

The syntax extension became optional in the 0.8 release. Are camlp4 and estring installed?

waclena commented 6 years ago

Didn't know about estring; installed it: works! Thanks!

mfp commented 6 years ago

I'm in the process of releasing 0.9.0, where it is now recommended to use pa_sqlexpr (or better yet, switch to ppx_sqlexpr altogether), which depends explicitly on estring. (For backwards compatibility, sqlexpr itself still provides sqlexpr.syntax if estring is installed, but this will be dropped in the future.)