In what cases can Elm use the keyword infix?

Hi everyone,
I new to elm lang and currently learning and practicing on exercism.

I came across this exercise involving the elm/parser package.

In the source code of elm/parser, I noticed the infix keyword being used. But I’ve heard from some sources that infix was removed in v0.19.1.

I’m confused. I’d really appreciate any help!

There are a small number of first party packages that are still allowed to define infix operators. elm/parser is one of them.

1 Like

Okay, this helps.

The conclusion is generally we can’t use the infix keyword.
But the core members of elm-lang developers can.

I think it’s really confusing.

Welcome to Elm, I guess.

Only core packages are allowed, not core members.
They are not allowed to use in projects or other packages outside the core ones.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.