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

Type-level infix operators #153

Open
ppolesiuk opened this issue Nov 8, 2024 · 0 comments
Open

Type-level infix operators #153

ppolesiuk opened this issue Nov 8, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ppolesiuk
Copy link
Member

We could implement infix operators on the level of types/modules. In order to avoid some syntactic ambiguities, the type-level operator as an identifier without arguments should be placed in square brackets. For instance, the product type could be defined as:

data [*] X Y = (,) of X, Y
@ppolesiuk ppolesiuk added enhancement New feature or request good first issue Good for newcomers labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant