-
Notifications
You must be signed in to change notification settings - Fork 17
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
#require doesn't work in toplevel #30
Comments
This is expected.
We then carefully crafted the dependencies between these libraries to reflect this fact. So |
Hmm. I can't figure out how to enable [%sexp_of] or [@@deriving sexp] in utop except by #require "ppx_jane". How should I do it? |
It should work with: |
It doesn't seem to work for me:
|
Ah, that's a deeper issue... For historical reasons, the toplevel relies on an older and more complicated way of composing and running ppx rewriters. Currently, you have to install the The reason it works with /cc @emillon, we should really look into changing this |
Is a reasonable short-term hack to make ppx_deriving a dependency of the various ppxs? That way, when you install a PPX, you'll be able to actually use it in the toplevel without installing anything else. |
Such changes never have a 0 cost as everybody cares about dependencies and we have been in this situations for years. So I'm more inclined to keep it as a know quirk until we switch to something more straightforward. |
Understood
…On Tue, May 19, 2020, 10:49 AM Jérémie Dimino ***@***.***> wrote:
Such changes never have a 0 cost as everybody cares about dependencies and
we have been in this situations for years. So I'm more inclined to keep it
as a know quirk until we switch to something more straightforward.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFOUJXV7K4GDKIGQRZZ273RSKMBHANCNFSM4MYMSZAQ>
.
|
Yeah, curious to hear why it works with |
I can enable ppx_sexp_value if I #require "ppx_jane", but not if I #require "ppx_sexp_value".
Any idea what's going on?
The text was updated successfully, but these errors were encountered: