Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README - Add PPX config in Dune file #110

Open
gregberns opened this issue May 28, 2021 · 0 comments
Open

Update README - Add PPX config in Dune file #110

gregberns opened this issue May 28, 2021 · 0 comments

Comments

@gregberns
Copy link

I'm new to OCaml and struggled to figure out how to get the PPX working.

Suggestion: In the Using the PPX section, add how to configure the PPX in the dune file.

(libraries pgocaml pgocaml_ppx  )
 (preprocess
  (pps pgocaml_ppx)

Also, if I add try to connect in the main.ml file in bin (not sure if this is important), and open PGOCaml is NOT added, then the EnvVars don't get captured and passed into PGOCaml.connect. It took a bit to figure out why they weren't getting captured during compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant