generating javascript

Hello, Are there any Haskell tools to generate javascript? Has anyone made a combinator library for javascript? thanks, Jeff

You can generate Javascript from haskell using Yhc, check
http://haskell.org/haskellwiki/Yhc/Javascript
On 11/29/06, jeff p
Hello,
Are there any Haskell tools to generate javascript? Has anyone made a combinator library for javascript?
thanks, Jeff _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Tue, 2006-11-28 at 18:36 -0500, jeff p wrote:
Hello,
Are there any Haskell tools to generate javascript? Has anyone made a combinator library for javascript?
There's a Google SoC-project made by a friend of mine for JavaScript support in Haskell Server Pages: http://csmisc14.cs.chalmers.se/~bjornson/soc/ It's a combinator library, but i'm not sure it's what you really need though. :) regards Mattias

Hello,
There's a Google SoC-project made by a friend of mine for JavaScript support in Haskell Server Pages: http://csmisc14.cs.chalmers.se/~bjornson/soc/
It's a combinator library, but i'm not sure it's what you really need though. :)
This seems to contain just what I was looking for. Although I'm not using HSP, it looks like the HSPClientside library can be used (in conjunction with Text.XHtml) to generate webpages with embedded scripts. thanks, Jeff

Hi Jeff,
It all depends how you want to write your code. The two options are
full Haskell (Yhc) or combinators (HSPClientSide).
Thanks
Neil
On 11/29/06, jeff p
Hello,
There's a Google SoC-project made by a friend of mine for JavaScript support in Haskell Server Pages: http://csmisc14.cs.chalmers.se/~bjornson/soc/
It's a combinator library, but i'm not sure it's what you really need though. :)
This seems to contain just what I was looking for. Although I'm not using HSP, it looks like the HSPClientside library can be used (in conjunction with Text.XHtml) to generate webpages with embedded scripts.
thanks, Jeff _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

2006/11/29, jeff p
This seems to contain just what I was looking for. Although I'm not using HSP, it looks like the HSPClientside library can be used (in conjunction with Text.XHtml) to generate webpages with embedded scripts.
It sure should be possible to use HSPClientside with Text.XHtml, but off course with exceptions to all Haskell Server Pages (HSP) specific functions. Anyway I encourage you to have a look at HSP as well :-) It's quite nice to be able to use regular XML syntax within the Haskell code. /Joel

Hi
Anyway I encourage you to have a look at HSP as well :-) It's quite nice to be able to use regular XML syntax within the Haskell code.
I think it should be entirely possible to use Haskell with Yhc and HSX (http://www.cs.chalmers.se/~d00nibro/haskell-src-exts/), so you can still write proper XML for your client side HTML. This is the way Hoogle 4 is going to be written. Thanks Neil

Hello,
It sure should be possible to use HSPClientside with Text.XHtml, but off course with exceptions to all Haskell Server Pages (HSP) specific functions. Anyway I encourage you to have a look at HSP as well :-) It's quite nice to be able to use regular XML syntax within the Haskell code.
Currently I am dynamically generating webpages using HAppS; thus my desire for a combinator library for use directly in Haskell. If I start using static web pages then I'll likely use HSP. Is the JavaScript embedding in HSPClientside essentially the same as the embedding explained in Broberg's thesis? thanks, Jeff
participants (5)
-
Alfonso Acosta
-
jeff p
-
Joel Björnson
-
Mattias Bengtsson
-
Neil Mitchell