[Haskell-cafe] Using GHC API to compile Haskell sources to CORE and CORE to binary
david.feuer at gmail.com
Wed Jan 28 02:55:12 UTC 2015
There used to be an external representation of core intended to be
used for such things. It was recently removed because it had gotten
stale and no one wanted to take responsibility for maintaining it. So
at the moment, Core is really just an AST, not a proper language, and
you'll have to hack GHC if you want to inject it.
On Tue, Jan 27, 2015 at 6:10 PM, Wojciech Danilo
<wojciech.danilo at gmail.com> wrote:
> Hello All! :)
> Recently I've came across a problem and hopefully you could help me with it.
> Basically I and some people here are running a startup and we have created a
> language for processing images. This language has 2 interchangeable
> representations - textual and visual, dataflow one.
> Right now we are compiling it to haskell sources, but we want to move over
> GHC CORE. Getting into GHC has a high learning curve, as far as we see, and
> we would be very thankfull for any help with a minimal working example of
> compiling haskell sources to CORE and then CORE to binaries. I've posted
> couple days ago a detailed question on StackOverflow, here:
> I would be very thankful for any help or hints!
> All the best,
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe