
The reason I ask is my haskell-src-exts (http://www.cs.chalmers.se/~d00nibro/haskell-src-exts) library that extends the haskell-src modules with support for syntactic extensions. I believe this functionality is something that most users of haskell-src are interested in, so perhaps it might be a good idea to actually add my extensions to the standard package. It won't be this very minute since there are some issues, but if I get a clearance I'll make an effort to work them out. /Niklas

That would be me, I guess. On Fri, Apr 29, 2005 at 05:12:48PM +0200, Niklas Broberg wrote:
The reason I ask is my haskell-src-exts (http://www.cs.chalmers.se/~d00nibro/haskell-src-exts) library that extends the haskell-src modules with support for syntactic extensions. I believe this functionality is something that most users of haskell-src are interested in, so perhaps it might be a good idea to actually add my extensions to the standard package. It won't be this very minute since there are some issues, but if I get a clearance I'll make an effort to work them out.
Sounds like a great idea. There have been a few changes to haskell-src since you started that will need reconciling. I'd also like to parameterize the parser over the Extensions type currently in Distribution.Extension (maybe it should move to Language.Haskell.Extension) so that users could selectively enable extensions. I'd also like to merge the lexer and parser of the arrow preprocessor into haskell-src.

In Haddock there is another good Haskell Lexer/Parser. It should be
good to have one reusable parser suitable for all projects.
Cheers,
Krasimir
On 4/29/05, Ross Paterson
That would be me, I guess.
On Fri, Apr 29, 2005 at 05:12:48PM +0200, Niklas Broberg wrote:
The reason I ask is my haskell-src-exts (http://www.cs.chalmers.se/~d00nibro/haskell-src-exts) library that extends the haskell-src modules with support for syntactic extensions. I believe this functionality is something that most users of haskell-src are interested in, so perhaps it might be a good idea to actually add my extensions to the standard package. It won't be this very minute since there are some issues, but if I get a clearance I'll make an effort to work them out.
Sounds like a great idea. There have been a few changes to haskell-src since you started that will need reconciling. I'd also like to parameterize the parser over the Extensions type currently in Distribution.Extension (maybe it should move to Language.Haskell.Extension) so that users could selectively enable extensions. I'd also like to merge the lexer and parser of the arrow preprocessor into haskell-src. _______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries

On Fri, Apr 29, 2005 at 07:38:28PM +0100, Krasimir Angelov wrote:
In Haddock there is another good Haskell Lexer/Parser. It should be good to have one reusable parser suitable for all projects.
That's yet another fork of the same code. The problem is that LALR parsers aren't usually parameterizable. You can turn stuff on and off by hiding symbols in the lexer or testing after parsing, but you have to have thought of it in advance. There's the danger of bloat -- do we want Haddock's doc comments in the shared parser? And then as soon as someone wants to add some extra bit of syntax, they'll fork again.
participants (3)
-
Krasimir Angelov
-
Niklas Broberg
-
Ross Paterson