Skip to content

Conversation

@art-w
Copy link
Collaborator

@art-w art-w commented Jan 21, 2026

A simple split of the parameterised_rules.ml file in two files (one for the rules and one for printing the instances in the alias file), to prepare for the jsoo rules for OxCaml parameterised libs: Otherwise, there'll be a cycle when Parameterised_rules starts calling Jsoo_rules -> Compilation_context -> Parameterised_rules. With this PR, the last module becomes Parameterised_instances which breaks the cycle.

| Simple of instance
| Wrapped of Loc.t * Module_name.t * instance list

type t = instances list
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new module is identical to the code deleted from parameterised_rules, except for the introduction of this new type t to make the signatures shorter.

Signed-off-by: Arthur Wendling <arthur@tarides.com>
@art-w art-w force-pushed the refactor-parameterised-instances branch from 540d22b to 56dca68 Compare January 21, 2026 17:39
@art-w art-w merged commit 6d20057 into ocaml:main Jan 22, 2026
28 checks passed
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

Successfully merging this pull request may close these issues.

2 participants