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

conflict from ocamlyacc? #95

Open
progman1 opened this issue Jan 30, 2021 · 0 comments
Open

conflict from ocamlyacc? #95

progman1 opened this issue Jan 30, 2021 · 0 comments

Comments

@progman1
Copy link

ocamlyacc generates an mli with a fixed 'Lexing.lexbuf ...' and no way to
include anything extra, such as 'module Lexing=Sedlexing'.
so in my setup the compiler is seeing this as the Stdlib Lexing module,
while the generated .ml sees the header redirect and so the types are in conflict with
those of the .mli.

is there a well-known workaround for this (at least to me) surprising inconvenience?
I saw the ocamlyacc docs are explicit about this referring to the Stdlib module
so presumably there's a good reason for it.

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