Re: Extending GHCi

2012-12-06 Thread Ian Lynagh
On Tue, Dec 04, 2012 at 04:23:02PM +0100, Dennis Felsing wrote: > > Is there a way to extend GHCi without copying some of its source code? Someone was looking at moving the ghci code into a library, which may mean you need to copy less code, at least. I'm not sure what the status of that is, thou

Re: Extending GHCi

2012-12-04 Thread Simon Hengel
> Now I'm wondering whether the approaches I have in mind are sensible or if > anyone can think of a better way to achieve my goals? Is there a way to extend > GHCi without copying some of its source code? Is there a chance of having > these > features flow back into mainline GHCi once they are pr

Extending GHCi

2012-12-04 Thread Dennis Felsing
Hi! I'm currently trying to extend ghc-vis[1], a tool to visualize live data structures in GHCi and GHC compiled programs, similar to GHCi's :print and vacuum. I want to show the type of a subexpression visualized in ghc-vis. As types aren't stored in GHC they have to be reconstructed. For this I