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
[...] 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
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
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
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 =
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