Alastair Reid writes:

> o fixity decls are optional
>   I see no point in this.  If you want to use something as an infix
>   operator, you ought to give a decl that says so.
> 
>   The only reason not to do this is that it's be cool to by able to write:
> 
>     x `elemBy myEquality` xs
> 
>   which obviously wouldn't work if you had to declare the fixity of
>   "elemBy myEquality"

Ummm... the Haskell 1.4 report says:

varop  -> varsym  | `varid`
qvarop -> qvarsym | `qvarid`
conop  -> consym  | `conid`
qconop -> qconsym | `qconid`

This would seem to disallow the syntax above.  Does Hugs allow this?

--KW 8-)
-- 
: Keith Wansbrough, MSc, BSc(Hons) (Auckland) -------------------------:
: PhD Student, Computing Science, University of Glasgow, Scotland.     :
: Native of Antipodean Auckland, New Zealand: 174d47' E, 36d55' S.     :
: http://www.dcs.gla.ac.uk/~keithw/  mailto:[EMAIL PROTECTED]       :
:----------------------------------------------------------------------:

Reply via email to