[Haskell] Core language inlined?

Stefan O'Rear stefanor at cox.net
Mon May 14 09:45:42 EDT 2007


On Mon, May 14, 2007 at 03:26:34AM -0700, Marcel Manthe wrote:
> 
> Hey,
> 
> GHC seems to have a very powerful core language, which makes implementing
> language features less painful. As further applications of Core were
> mentioned: let other languages use it and build new features upon it.
> 
> Here's a silly idea: Would it be possible to use Haskell and Core in
> parallel, in the same module or at least in the same program? Can Core
> integrate smoothly with Haskell?
> 
> The benifitz of such feature would at least be:
> 
> * Easy implementation and testing of new language features
> * Use language features that are used too seldom to justify an
> implementation in haskell
> * Some code may be easier to implement/understand, when it is in core form

GHC has a feature that theoretically allows you to link .hcr files
along with .hs files; the External Core system.  It has been broken
since 6.0, but Aaron Tomb et al are busy fixing it, and it is expected
to be usable this year. 

Stefan


More information about the Haskell mailing list