-
Notifications
You must be signed in to change notification settings - Fork 152
UnicodeSyntax #3
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
Comments
I like that. If it also offers an option to perform the reverse translation then we'd have the best of both worlds. :-) |
Note that an alternative way is to use https://github.com/frerich/unicode-haskell. It is especially nice as it converts data back to ASCII upon saving and converts characters as you type. |
I also like the idea, and it's not very hard to implement either (I think). Thanks for the suggestion! |
This seems to exist in the latest version, but fails on a module that contains text to translate. Given the module:
And the config file:
It fails with:
If I set add_language_pragma to true, I get:
If first I do save the module in UTF-8 (via notepad in Windows, so I'd say a BOM is added:
More importantly, any of these errors cause the file to be erased totally! On a module that does not contains text sequences, there are no errors. (Nothing is done, which I suppose explains it) |
I can't reproduce the issue exactly, but I get errors as well, working on it. |
GHC has an extension called UnicodeSyntax that lets you use unicode symbols for various keywords in the Haskell syntax. It would be nice if I could automatically UnicodeSyntaxify code. This would involve adding the extension at the top of the module if not already there, and replacing all replaceable symbols with their unicode counterparts.
The text was updated successfully, but these errors were encountered: