[Yhc] Core

Neil Mitchell ndmitchell at gmail.com
Thu Mar 1 05:43:43 EST 2007


Hi Ricky,

Ah, I see what the error is. In general I use Yhc to compile programs
for Yhc Core, but use GHC/Hugs for developing of Yhc.Core tools. Yhc
obviously isn't capable of compiling Yhc.Core at the moment - it
should be but it appears that DrIFT for GhcBinary isn't compatible
with Yhc. Should be easy to fix, but since we were going to move to
Data.Binary I'm not sure there is much point.

Thanks

Neil


> "Error: ...\Yhc\Core\Binary.hs(8:14-8:15) Found {end-of-group} but
> expected one of <string> <char> <rational> <integer> ( [ <varid> <conid>
> _case_ _if_ _do_ _let_ \ ` <varop> <conop> ~ _"
>
> I'm not sure how to add those paths to the include path, so I've just
> moved the folders from \libraries\general and src\libraries\core to
> \packages\yhc-base\1.0 which means yhc finds the libraries.
>
> Again any help would be much appreciated,
>
> Ricky
>
> -----Original Message-----
> From: Neil Mitchell [mailto:ndmitchell at gmail.com]
> Sent: 28 February 2007 23:40
> To: Ricky Barefield
> Cc: yhc at haskell.org
> Subject: Re: [Yhc] Core
>
> Hi
>
> > 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.
>
> If you are developing with Yhc.Core I would recommend at least
> downloading the darcs and building the libraries and the compiler
> (only requires Python, Scons and GHC). It shouldn't be too hard, and
> its usually easier to keep up to date. A simple "scons build yhc",
> "scons build libraries" and that should work well.
>
> That said, once we've fixed up the library with a .cabal file, we'll
> start making separate snapshots of that too.
>
> > The problem is I'm not able to import these files into any of my own
> > code as I get an error message.
>
> I just add src\libraries\general and src\libraries\core to the include
> path and everything just works. What is your error message?
>
> > I understand YHC is still being developed, is there a stable version I
> > could use for these files?
>
> I recommend the development version, its not stable, but it does have
> enough users that if I make any big changes someone will hit me :) It
> is pretty stable - I have 4 applications which depend on it. If you
> have any additional needs for it, just shout, and we can always add
> more functionality as required.
>
> Thanks
>
> Neil
>
>
> > -----Original Message-----
> > From: Neil Mitchell [mailto:ndmitchell at 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 at 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 at sheffield.ac.uk> wrote:
> > > Thanks for this I'll look into it.
> > >
> > > Ricky
> > >
> > > -----Original Message-----
> > > From: Neil Mitchell [mailto:ndmitchell at gmail.com]
> > > Sent: 06 February 2007 18:47
> > > To: Ricky Barefield
> > > Cc: haskell-cafe at 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
> > >
> > >
> >
> > _______________________________________________
> > Yhc mailing list
> > Yhc at haskell.org
> > http://www.haskell.org/mailman/listinfo/yhc
> >
>
>


More information about the Yhc mailing list