ANNOUNCE: haskell-src-exts 0.4.8

Fellow Haskelleers, it is my pleasure to announce the new release of the haskell-src-exts package, version 0.4.8: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskell-src-exts-... darcs get http://code.haskell.org/HSP/haskell-src-exts This is a bug-fix release in the wake of the flurry of bug reports I received due to Neil Mitchell's release of hlint. Not all bugs have been squashed, but all the ones that I could handle with fairly small changes to the library should be. Those include deriving for MPTCs, importing constructor symbols, inline pragmas in instance declarations, scoped type variables, and a few more. There are some minor non-backwards compatible changes to the abstract syntax, but nothing too serious. The most pervasive is that the Match and PatBind constructors have an extra argument of type Maybe Type, representing an optional type signature. Derivings also are no longer just a list of class names, since those classes can now have extra parameters. Four things remain on the bug list: - Support for explicitly kinded arguments to type families. Shouldn't be too hard, but will require changes to the AST that I will leave for the next release. - Support for (un-parenthesised) higher-ranked types as arguments. haskell-src-exts supports e.g. foo :: b -> (forall a . [a]) -> b but not foo :: b -> forall a . [a] -> b. Supporting the latter is simply a parser issue, but a rather tricky one. - Correct handling of hyphened vars (an artifact of HSX/HSP) vs minus operators. This one is nasty. - Support for Unicode symbols for e.g. ->. Fixing that would require me to have a Unicode-compliant editor, which it appears I don't. And I couldn't have someone else submit a patch either, since then I couldn't open the file anymore in my editor. So unless someone can point out a good Unicode-aware editor for Windows, I'm afraid this is a feature that won't be implemented. If you find anything else that haskell-src-exts fails on, please report it. Cheers and Happy Haskelling, /Niklas

On Thu, Jan 8, 2009 at 4:51 PM, Niklas Broberg
So unless someone can point out a good Unicode-aware editor for Windows, I'm afraid this is a feature that won't be implemented.
A Windows port of a Unix editor? I know Vim is available on Windows. Otherwise, Notepad++ appears to have Unicode support.
Cheers and Happy Haskelling,
/Niklas

Hello Max, Friday, January 9, 2009, 4:15:48 AM, you wrote:
Otherwise, Notepad++ appears to have Unicode support.
even notepad (on my vista box) supports utf-8, utf16be and utf16le :))) -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

On 9 Jan 2009, at 03:51, Niklas Broberg wrote:
- Support for Unicode symbols for e.g. ->. Fixing that would require me to have a Unicode-compliant editor, which it appears I don't. And I couldn't have someone else submit a patch either, since then I couldn't open the file anymore in my editor. So unless someone can point out a good Unicode-aware editor for Windows, I'm afraid this is a feature that won't be implemented.
Emacs?

On 2009-01-09 00:51, Niklas Broberg wrote:
- Support for Unicode symbols for e.g. ->. Fixing that would require me to have a Unicode-compliant editor
Can't you just use character literals like '\x2192'? -- /NAD This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

Thanks all for the suggestions! VIM and I have never gone together well, probably mostly my fault I know. Maybe some day... Emacs isn't my favorite either. I do have Notepad++, but it only seems to support a small portion of the unicode I need. Normally I use TextPad, but it wouldn't show me any of the symbols I need, even though it supposedly should read the document as Unicode. But regardless of I find an editor I could use, NAD's suggestion is really the best:
- Support for Unicode symbols for e.g. ->. Fixing that would require me to have a Unicode-compliant editor
Can't you just use character literals like '\x2192'?
Doh, of course! That's not only the simplest but also clearly the most portable solution, since then I (and others looking at the code) could use whatever editor I like. Thanks NAD! :-) Cheers, /Niklas

On Fri, 2009-01-09 at 18:38 +0100, Niklas Broberg wrote:
Thanks all for the suggestions!
VIM and I have never gone together well, probably mostly my fault I know. Maybe some day... Emacs isn't my favorite either. I do have Notepad++, but it only seems to support a small portion of the unicode I need. Normally I use TextPad, but it wouldn't show me any of the symbols I need, even though it supposedly should read the document as Unicode.
Isn't this a fonts issue? jcc
participants (6)
-
Bulat Ziganshin
-
Jonathan Cast
-
Max Rabkin
-
Miguel Mitrofanov
-
Niklas Broberg
-
Nils Anders Danielsson