What version of GHC are you working with? I don't see any
compileCoreToObj function in HEAD.
Edward
Excerpts from Marek Wawrzos's message of 2016-02-20 00:39:55 -0800:
> Hello,
>
> I am bringing back that thread to life after a while.
>
> I've spent some time on studding GHC source code
Hello,
I'm trying to compile some module with GHC API. I'm going to feed GHC with
Core generated by me.
So far is noticed, that function compileCoreToObj ends with an runtime
error on each call. In spide of this function produces some *.o and *.hi
files. However, produced interface file does not
If we look at the source code for hscCompileCore, it would seem that it
creates a ModGuts with mkModGuts which has an empty mg_exports, which
means that in all cases there will be no exported items. So it's not
very useful! You should file a bug.
We should fix this, but in the mean time, you