Re: Using GHC Core as a Language Target

2018-10-29 Thread Ara Adkins
That’s a brilliant resource! Thanks so much for the links. _ara > On 29 Oct 2018, at 19:11, Csaba Hruska wrote: > > There is also a nice intro blog post about GHC internals with an example how > to compile a custom constructed module AST. > Dive into GHC: Pipeline > Dive into GHC:

Re: Using GHC Core as a Language Target

2018-10-29 Thread Csaba Hruska
There is also a nice intro blog post about GHC internals with an example how to compile a custom constructed module AST. - Dive into GHC: Pipeline - Dive into GHC: Intermediate Forms - Dive

Re: Using GHC Core as a Language Target

2018-10-25 Thread Ara Adkins
Heya, Those are exactly the kind of pointers I was hoping for. Thanks Iavor. I’m sure I’ll have more questions with time, but that’s a great starting point. _ara > On 25 Oct 2018, at 19:20, Iavor Diatchki wrote: > > Hello, > > I have not done what you are asking, but here is how I'd

Re: Using GHC Core as a Language Target

2018-10-25 Thread Iavor Diatchki
Hello, I have not done what you are asking, but here is how I'd approach the problem. 1. Assuming you already have some Core, you'd have to figure out how to include it with the rest of the GHC pipeline: * A lot of the code that glues everything together is in `compiler/main`. Modules of

Using GHC Core as a Language Target

2018-10-22 Thread Ara Adkins
Hey All, I was chatting to SPJ about the possibility of using GHC Core + the rest of the GHC compilation pipeline as a target for a functional language, and he mentioned that asking here would likely be more productive when it comes to the GHC API. I'm wondering where the best place would be for