faylang / fay

A proper subset of Haskell that compiles to JavaScript
https://github.com/faylang/fay/wiki
BSD 3-Clause "New" or "Revised" License
1.29k stars 89 forks source link

Error out when seeing non-default fixity declarations #386

Open bergmark opened 10 years ago

bergmark commented 10 years ago

Fay just passes base fixities to haskell-src-exts so these are the only operators that will parse correctly. Custom fixity declarations are ignored.

If you want to use custom operators anyway, be aware of the default fixity it gets and either declare it as such or remove the fixity declaration alltogether.

We can error if a non default fixity is given, otherwise compile normally.