Hi, I'm currently working on a project to convert Haskell to Java preserving lazy evaluation and such at Sheffield University. Neil Mitchell suggested that I look into using YHC Core as an intermediary language. It looks ideal, although I am having a couple of problems using it. Firstly so I can work with it I need to use the `Core' data type which seems to be in `Yhc.Core', I realised this isn't part of the windows snapshot of YHC so I found the files within http://darcs.haskell.org/yhc I've downloaded these files and put them into YHC's library folders. The problem is I'm not able to import these files into any of my own code as I get an error message. Would anyone know if I'm doing something wrong? (Let me know if I can tell you a bit more about what I've done) Or have I not downloaded the correct versions of these files? I understand YHC is still being developed, is there a stable version I could use for these files? Many Thanks and any help will be much appreciated. Ricky Barefield -----Original Message----- From: Neil Mitchell [mailto:ndmitchell@gmail.com] Sent: 06 February 2007 19:22 To: Ricky Barefield Subject: Re: [Haskell-cafe] External Core Hi If you do have any questions either post them to Haskell-cafe or yhc@haskell.org and I'm sure we'll be able to get you sorted. If there is any documentation you need, and can't find, also just shout and we'll find someone to write it. Thanks Neil On 2/6/07, Ricky Barefield <aca03rdb@sheffield.ac.uk> wrote:
Thanks for this I'll look into it.
Ricky
-----Original Message----- From: Neil Mitchell [mailto:ndmitchell@gmail.com] Sent: 06 February 2007 18:47 To: Ricky Barefield Cc: haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] External Core
Hi Ricky,
For the last year I've been working on a program to translate between Haskell and Java. Originally this was for my third year dissertation to contribute towards my Masters in computer science at Sheffield University, UK.
I have been given the opportunity to continue this project and have become interested in using the Core representation as an intermediary language.
You might be interested in Yhc.Core - its like GHC's Core, but is simpler, untyped and (in my opinion) better supported.
http://haskell.org/haskellwiki/Yhc/API/Core
We already have a Haskell -> Javascript convertor written using this, so your type of application is certainly doable using what we have already. There are quite a few users of Yhc.Core already, and everyone has had nice things to say about it :)
If you have any specific Yhc.Core questions feel free to ask away
Thanks
Neil