-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behaviour of operators defined in different module #256
Comments
Looking at the code, I don't think that fay currently handles operator precedence outside of those defined here: http://hackage.haskell.org/packages/archive/haskell-src-exts/1.13.5/doc/html/src/Language-Haskell-Exts-Fixity.html#line-140 Haskell-src-exts does provide a function |
This is not quite that easy, we need to first parse the file that uses the imported operator, this parse might fail (src-exts just errors out) because of ambiguous fixities since they are defined in this file's import. So we would need to pre-parse imports without using src-exts and then re-parse with the appropriate fixites. Luckily |
Correction: haskell-names doesn't do this. |
Spring cleaning. Lack of activity, it's unlikely that this will happen. Fixity declarations are just too much work since it depends on both parsing and name resolution. |
The following code works as expected (i.e. writes
helloA
to the console):If I move the operators to another module
then the code
works too. But if I remove the parentheses around
return >=> putStrLn
the code stops working (nothing is printed to the console):I'm using fay-0.14.2.0 and compiling by:
The text was updated successfully, but these errors were encountered: