Haskell-src-ext

2008-04-14 Thread Marc Weber
On Mon, Apr 14, 2008 at 12:52:33PM +0200, Niklas Broberg wrote: how can I convince the Language.Haskell.Parser to accept GHC Haskell (i.e., -fglasgow-exts, e.g. for existential types) You use my haskell-src-exts package instead. :-) Hi Niklas, nice to meet you. And even nicer to see how

Re: Haskell-src-ext

2008-04-14 Thread Johannes Waldmann
[...] to add some import statements? what is your plan? Leif wrote down some ideas (for eclipsefp2) here: http://leiffrenzel.de/eclipse/wiki/doku.php?id=editororganizeimports best regards, J.W. ___ Glasgow-haskell-users mailing list

Re: Haskell-src-ext

2008-04-14 Thread Niklas Broberg
Hi Niklas, nice to meet you. Likewise. :-) I'm planning to extend shim to get a more featured ide (vim / emacs.. Maybe the Eclipse supporters do join as well?) One thing I'd like to add is adding modules/ import statements to a module. Do you think your' parsers / resulting

Re: Haskell-src-ext

2008-04-14 Thread Jesse Tov
Niklas Broberg wrote: For any project that just needs to parse/fiddle with/print haskell source code, I see very little reason to choose GHC API instead of haskell-src-exts. Does your pretty-printer round trip? One problem I've had using GHC API is that the pretty-printer produces

Re: Haskell-src-ext

2008-04-14 Thread Niklas Broberg
Does your pretty-printer round trip? Absolutely. I'd think a parser that can't parse what the pretty-printer yields means you either have a broken parser or a broken pretty-printer. :-) Except for line numbering (it inserts but doesn't read line pragmas), the AST should be preserved under f =

Re: Haskell-src-ext

2008-04-14 Thread Niklas Broberg
Except for line numbering (it inserts but doesn't read line pragmas), the AST should be preserved under f = parse . pretty. and what about (pretty . parse) = id :: String - String ?-) Most certainly not I'm afraid. It doesn't handle pragmas at all (treats them as comments), and by default