Ticket #108 (new enhancement)

Opened 8 years ago

Last modified 7 years ago

No support for infix operator definitions

Reported by: benl Owned by: steggles
Priority: project Milestone: _|_
Component: Source Parser Version: 0.1.2
Keywords: Cc:


We don't support infix definitions like:

f ++ g = ...

All operators must be define in prefix style like:

(++) f g = ...

I'm not sure it's a good idea to support the infix definition style, because GHC had problems with it when they introduced bang patterns. For example:

f ! x = ...

It that supposed to be a definition of the operator (!) or, the definition of a function "f" which is strict in its argument?

We may well want to support bang patterns or something similar in the future, so we're avoiding infix definitions for now.

Change History

Changed 8 years ago by benl

  • component changed from Build System to Source Parser

Changed 7 years ago by steggles

  • owner set to steggles
Note: See TracTickets for help on using tickets.