[Haskell-beginners] User defined operators : setting precedence
aslatter at gmail.com
Mon Nov 21 16:47:45 CET 2011
On Mon, Nov 21, 2011 at 9:34 AM, Hugo Ferreira <hmf at inescporto.pt> wrote:
> Can anyone point me to some documentation that describes
> how one may set precedence in a user defined operators?
> I have composition operators so that I can write:
> let ruleSuffixCapsFreq = ruleT |> suffixT .> capitalizeT .> freqT
> but I seem to be forced to write:
> let ruleSuffixCapsFreq = ruleT |> (suffixT .> capitalizeT .> freqT)
> and I would like to avoid this.
Here's a brief introduction to Haskell fixity declarations:
Here's the relevant part of the language definition, which includes a
precedence table for the operators that ship with the language:
> Hugo F.
> Beginners mailing list
> Beginners at haskell.org
More information about the Beginners