ANNOUNCE: haskell-src-exts 0.4.1

Fellow Haskelleers, it is my pleasure to announce the new release of the haskell-src-exts package, version 0.4.1: 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 new "major" release, the first of the 0.4 branch, and as such it is not backwards compatible with the releases in the 0.3 branch. This is due to two major changes to the design of the library: 1) The AST has been cleaned up, by splitting Haskell expressions in the AST from the "expressions" used while parsing to represent both expressions and patterns. This means that the datatype for expressions will no longer contain constructors for things like wildcards and irrefutable patterns. It now only contains constructors for actual Haskell expressions. If you have been using haskell-src-exts previously, this change should not bite you at all unless you have abused these ugly hacks in the AST, so it is *almost* backwards compatible. However... 2) ... I've finally decided to take the plunge and get rid of the ugly prefixes on all datatypes in the AST. I am of the firm conviction that disambiguation between datatypes and functions with the same name should be handled through the module hierarchy and qualified imports, not by adding prefixes. And the longer I wait, the harder the switch. So now the datatypes that make up the AST are called things like Exp, Pat, Module (the former Module is now ModuleName), Type, QOp etc instead of HsExp, HsPat... . The migration from 0.3.x to 0.4.1 should be really simple: i) replace all occurences of Module with ModuleName ii) remove all occurences of Hs This release also contains a number of smaller, fully backwards compatible bug fixes. These are available for the 0.3 branch in the 0.3.12 release that will mark the end of that branch: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskell-src-exts-... No further bug fixes or features will be implemented for it, and I urge you to migrate as early as possible, it really isn't hard. :-) Cheers and Happy Haskelling, /Niklas

On Sat, 2008-11-15 at 02:26 +0100, Niklas Broberg wrote:
Fellow Haskelleers,
it is my pleasure to announce the new release of the haskell-src-exts package, version 0.4.1:
2) ... I've finally decided to take the plunge and get rid of the ugly prefixes on all datatypes in the AST. I am of the firm conviction that disambiguation between datatypes and functions with the same name should be handled through the module hierarchy and qualified imports, not by adding prefixes.
Yes!
And the longer I wait, the harder the switch. So now the datatypes that make up the AST are called things like Exp, Pat, Module (the former Module is now ModuleName), Type, QOp etc instead of HsExp, HsPat... .
Yay! That is all. :-) Duncan

Fellow Haskelleers,
it is my pleasure to announce the new release of the haskell-src-exts package, version 0.4.1:
All looks great :-) I upgraded my project using HSE, which made very heavy use of the library, in about 15 minutes. And that included getting name 3 clashes and fixing one abuse of HsWildcard :-) Any chance of including support for view patterns in a future release? http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#vi... . The project I'm writing using HSE makes significant use of view patterns, and it would be lovely if I could be self applicable :-) Thanks Neil

Any chance of including support for view patterns in a future release? http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#vi... . The project I'm writing using HSE makes significant use of view patterns, and it would be lovely if I could be self applicable :-)
Chance, definitely. In the perfect world, HSE would support everything that any Haskell compiler supports, so you might say I "plan" to include every extension, it's just a question of time and priority. And getting explicit requests for a particular feature certainly increases the latter. (Oh how I wish it would increase the former too...) :-) Cheers, /Niklas

Any chance of including support for view patterns in a future release? http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#vi... . The project I'm writing using HSE makes significant use of view patterns, and it would be lovely if I could be self applicable :-)
Fellow Haskelleers, it is my pleasure to announce the new release of the haskell-src-exts package, version 0.4.2: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskell-src-exts-... Now with view patterns. :-) Cheers, /Niklas
participants (3)
-
Duncan Coutts
-
Neil Mitchell
-
Niklas Broberg