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

Support for simple module construction. #175

Merged
merged 3 commits into from
Oct 14, 2024
Merged

Conversation

sbriais
Copy link
Collaborator

@sbriais sbriais commented Oct 13, 2024

This PR adds support for

  • module aliases module A = B

This can be convenient when writing interfaces and referring to other components.

For instance, in another mli

module Event = Js_browser.Event

val foo: Event.t -> string -> unit [@@js.call]

This way, we can just write Event and not Js_browser.Event everywhere.

@mlasson mlasson self-assigned this Oct 14, 2024
Copy link
Member

@mlasson mlasson left a comment

Choose a reason for hiding this comment

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

i added a small piece of documentation, feel to free to merge or amend it !

@sbriais sbriais merged commit 08fbb02 into master Oct 14, 2024
12 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