Closed xvw closed 4 months ago
(Comment referencing the issue was added)
Thank you!
In https://github.com/janestreet/merlin-jst/pull/73#issuecomment-2253475246 I suggested only omitting a ghost-location argument when it's None
. Maybe that's preferable here too?
In janestreet/merlin-jst#73 (comment) I suggested only omitting a ghost-location argument when it's
None
. Maybe that's preferable here too?
Yep, I'll do a patch today! Thanks for the feedback.
~I don't know whether the fixed system might break some of the parameters generated by PPX. (Perhaps if there is a ghost on the parent expression, you can check that it is the
None
constructor?).~After a conversation with @pitag-ha , we came to the conclusion that the introduction of ghost location in this context (which, in PPX terms, should be reserved for derivers) is a problem of semantics ‘on the PPX side’, so that this fix, which is based on ghost location, is not problematic (for PPX).
Fix #1770