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

Uninterpreted extension 'import' #89

Closed
keigoi opened this issue Apr 25, 2023 · 2 comments
Closed

Uninterpreted extension 'import' #89

keigoi opened this issue Apr 25, 2023 · 2 comments

Comments

@keigoi
Copy link

keigoi commented Apr 25, 2023

Hello,

type%import longident = Longident.t [@@deriving show]

produces an error:

File "lib/lib.ml", line 3, characters 5-11:
3 | type%import longident = Longident.t [@@deriving show]
         ^^^^^^
Error: Uninterpreted extension 'import'. 

Confirmed with dune 3.7.1.

It uses staged_pps in dune file. The complete code base is here: https://github.com/keigoi/test_ppx_import/blob/main/lib/lib.ml

@ejgallego
Copy link
Collaborator

Hi @keigoi , the new syntax is only available if you are using the master branch of ppx_import, likely you are using 1.10 which needs this syntax:

type longident = [%import: Longident.t] [@@deriving show]

@keigoi
Copy link
Author

keigoi commented May 18, 2023

Hi, it worked like a charm. Thank you very much and sorry for the late reply!

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

2 participants