Skip to content

Conversation

@aspeddro
Copy link
Collaborator

Add support for module_pack in parameters

https://github.com/rescriptbr/rescript-urql/blob/main/src/Client.res#L248-L251

Support module_pack after as

https://github.com/rescriptbr/rescript-urql/blob/main/src/Client.res#L327

Other changes

  1. Removed module_pack_type
  2. A new rule to match this cases repeat1(seq($.module_identifier, '.'))
  3. Two new rules constrain_module and constrain_type

@aspeddro aspeddro marked this pull request as draft September 21, 2022 19:28
@aspeddro
Copy link
Collaborator Author

881aae7 contains some improvements.

@aspeddro aspeddro marked this pull request as ready for review September 21, 2022 20:31
module_expression: $ => choice(
$.module_identifier,
$.module_identifier_path,
$.type_identifier_path,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

type_identifier_path to match module_pack in type_declaration

type t = Ok | Failed(module(Component.t))
//                                    ^ here

@aspeddro aspeddro marked this pull request as draft September 21, 2022 21:44
@aspeddro
Copy link
Collaborator Author

The commit 630e76a covers more cases and add more tests.

@aspeddro aspeddro marked this pull request as ready for review September 22, 2022 01:37
@nkrkv
Copy link
Collaborator

nkrkv commented Nov 5, 2022

Merged. Thanks!

@nkrkv nkrkv merged commit 2bf1d01 into rescript-lang:main Nov 5, 2022
@aspeddro aspeddro deleted the fix-fcm branch November 10, 2022 23:52
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