[Haskell-cafe] GHC core packages: same core?
batterseapower at hotmail.com
Tue Oct 13 16:53:31 EDT 2009
ghc-core is a pretty-printer for GHC's internal Core language (you can
get a non-pretty-printed version simply by compiling with (IIRC)
-dverbose-core2core). This is what we actually optimize and generate
code from, and the formatting of this output might change at any time.
This is probably what you should be looking at, as a human trying to
understand how your programs are being complied.
extcore is a library that parses "external" Core, which is an
alternative format intended to be stable and hence a suitable target
for consumption by non-GHC tooling. You can have GHC output external
core instead of machine code / C. I don't believe this is widely used
2009/10/12 Dimitry Golubovsky <golubovsky at gmail.com>:
> Just curious whether package
> http://hackage.haskell.org/package/ghc-core and
> http://hackage.haskell.org/package/extcore operate on the same flavor
> of GHC Core?
> There seem to be external  and internal  flavors of GHC Core.
>  http://www.haskell.org/ghc/docs/6.10.2/html/ext-core/core.pdf
>  http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/CoreSynType
> Dimitry Golubovsky
> Anywhere on the Web
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe