fram-lang/dbl

Type-level infix operators

Open

#153 opened on Nov 8, 2024

View on GitHub
 (0 comments) (0 reactions) (1 assignee)OCaml (28 forks)auto 404
0. parsinggood first issue

Repository metrics

Stars
 (46 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide