Re: Extracting representation from GHC

2018-01-19 Thread Robin Palotai
c/ > Main.hs?corpus=ghc-8.2.1-rc2 in the 'main' function to see all > the magic. > > Others are more used to the GHC API than me, though. >> >> S >> >> | -Original Message- >> | From: ghc-devs [mailto:ghc-devs-boun...@haskell.org] On Behalf Of >&g

Re: Extracting representation from GHC

2018-01-19 Thread Robin Palotai
| Sent: 19 January 2018 09:35 > | To: ghc-devs@haskell.org > | Subject: Extracting representation from GHC > | > | Dear GHC Developers, > | > | I would like to ask your opinion on my ideas to make it easier to use > | development tools with GHC. > | > | In the past wh

Re: Extracting representation from GHC

2018-01-19 Thread Shao Cheng
Hi, IIRC you can already use hscFrontendHook in the DynFlags hooks to retrieve TcGblEnv, and with a little bit of work, also HsParsedModule. Regards, Shao Cheng On Fri, Jan 19, 2018, 5:41 PM Matthew Pickering wrote: > I have too wanted this in the past and made a

Extracting representation from GHC

2018-01-19 Thread Németh Boldizsár
Dear GHC Developers, I would like to ask your opinion on my ideas to make it easier to use development tools with GHC. In the past when working on a Haskell refactoring tool I relied on using the GHC API for parsing and type checking Haskell sources. I extracted the representation and