Skip to content

Type-level infix operators #153

@ppolesiuk

Description

@ppolesiuk

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

Metadata

Metadata

Assignees

Labels

0. parsingThings related to lexer and parsergood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions