Re: Using the GHC API: pretty printing with qualified names

2010-11-19 Thread JP Moresmau
OK, I have fixed my problem, without forcing all my users to upgrade to GHC 7: using the renamed source instead of the typechecked source gives me the properly qualified name. I hope that won't cause other problems but for the moment everything looks fine (functions, constructors, with type

Re: Using the GHC API: pretty printing with qualified names

2010-11-18 Thread Claus Reinke
scion-server mimics a GHCi command line, of sorts. scion-server is used very successfully to syntax-highlight the Eclipse editor, show a source's outline, provide type information when hovering over a name, and provide completions. That's not the problem, per se. Let's say I'm hovering over a

Re: Using the GHC API: pretty printing with qualified names

2010-11-18 Thread scooter . phd
Wireless BlackBerry -Original Message- From: Claus Reinke claus.rei...@talk21.com Date: Thu, 18 Nov 2010 10:53:05 To: scooter@gmail.com; glasgow-haskell-users@haskell.org Subject: Re: Using the GHC API: pretty printing with qualified names scion-server mimics a GHCi command line, of sorts

Re: Using the GHC API: pretty printing with qualified names

2010-11-18 Thread JP Moresmau
Wireless BlackBerry -Original Message- From: Claus Reinke claus.rei...@talk21.com Date: Thu, 18 Nov 2010 10:53:05 To: scooter@gmail.com; glasgow-haskell-users@haskell.org Subject: Re: Using the GHC API: pretty printing with qualified names scion-server mimics a GHCi command line

Using the GHC API: pretty printing with qualified names

2010-11-17 Thread JP Moresmau
Hello, I'm the maintainer for EclipseFP, which involves using the scion library and the GHC API to provide IDE functionality. I have a little issue that no doubt stems from me not understanding the GHC API well, and I would be grateful for any light on the matter. I'm trying to give the user the

Re: Using the GHC API: pretty printing with qualified names

2010-11-17 Thread Thomas Schilling
On 17 November 2010 19:21, JP Moresmau jpmores...@gmail.com wrote: Hello, I'm the maintainer for EclipseFP, which involves using the scion library and the GHC API to provide IDE functionality. I have a little issue that no doubt stems from me not understanding the GHC API well, and I would be

Re: Using the GHC API: pretty printing with qualified names

2010-11-17 Thread JP Moresmau
On Wed, Nov 17, 2010 at 9:21 PM, Thomas Schilling nomin...@googlemail.comwrote: On 17 November 2010 19:21, JP Moresmau jpmores...@gmail.com wrote: Hello, I'm the maintainer for EclipseFP, which involves using the scion library and the GHC API to provide IDE functionality. I have a little

RE: Using the GHC API: pretty printing with qualified names

2010-11-17 Thread Simon Peyton-Jones
I'm trying to give the user the possibility to jump to the definition of a symbol in the source file. You click on the name of a function and you're send to the module where it's defined. So I have an AST, and somewhere down the line I have an Id object representing that function call. Then I

Re: Using the GHC API: pretty printing with qualified names

2010-11-17 Thread Claus Reinke
Hello, I'm the maintainer for EclipseFP, which involves using the scion library and the GHC API to provide IDE functionality. I have a little issue that no doubt stems from me not understanding the GHC API well, and I would be grateful for any light on the matter. A meta-comment: the GHC API

Re: Using the GHC API: pretty printing with qualified names

2010-11-17 Thread scooter . phd
...@talk21.com Sender: glasgow-haskell-users-boun...@haskell.org Date: Wed, 17 Nov 2010 23:25:29 To: JP Moresmaujpmores...@gmail.com; glasgow-haskell-users@haskell.org Subject: Re: Using the GHC API: pretty printing with qualified names Hello, I'm the maintainer for EclipseFP, which involves using