@@ -195,22 +195,26 @@ Operators
196User-defined infix operators can be created by enclosing names in parentheses.
196User-defined infix operators can be created by enclosing names in parentheses.
198−E.g. to create a synonym for string concatenation::
198+E.g. to create an infix synonym for the ``Data.Array.range`` function::
200− (<>) = \s1 s2 -> s1 ++ s2
200+ (..) :: Number -> Number -> [Number]
201+ (..) = Data.Array.range
202− greeting = "Hello" <> "World!"
203+This function can be used as follows::
204Regular functions can be used as operators by enclosing their names in backticks::
207Regular functions can be used as operators by enclosing their names in backticks::
206− foo = \x y -> x * y + y
209+ foo x y = x * y + y
208 test = 10 `foo` 20
211 test = 10 `foo` 20
210Fixity declarations can associate a precedence level, which is a natural number, to a user-defined operator, and specify which way it associates::
213Fixity declarations can associate a precedence level, which is a natural number, to a user-defined operator, and specify which way it associates::
212− infixl 5 <>
215+ infix 5 ..
213− infixr 7 %%
216+ infixl 7 %%
215Record Updates
219Record Updates
216--------------
220--------------