Yhc/Javascript
From HaskellWiki
(Difference between revisions)
(Improved appearance) |
(More details about Echo demo) |
||
| Line 7: | Line 7: | ||
# [[Yhc/Javascript/Programmers_guide|'''Programmers Guide''']] | # [[Yhc/Javascript/Programmers_guide|'''Programmers Guide''']] | ||
# '''Examples and Demos''' | # '''Examples and Demos''' | ||
| - | + | {| | |
| + | |- | ||
| + | |'''Echo''' | ||
| + | |- valign="top" | ||
| + | |'''Description:'''||Type any text in the input field provided, and see it echoed right above. Just for fun, type any decimal number and see it converted to a Roman number, and vice versa. | ||
| + | |- valign="top" | ||
| + | |'''Features:'''||Lowest possible level of interaction with web browser: | ||
| + | * Simple monadic framework | ||
| + | * Wrapping Javascript functions to become Haskell functions | ||
| + | * Calling Haskell functions from Javascript | ||
| + | * Access to Javascript (including DOM) objects and properties | ||
| + | * Handling of Javascript exceptions in Haskell | ||
| + | * Events handling | ||
| + | * Third party code of some "general" purpose works in web browser | ||
| + | |- valign="top" | ||
| + | |'''Tested with:'''||Netscape 7/Linux, MSIE 6.0/Windows 2000<br> | ||
| + | <small><sup>feel free to add your own combination of browser/os where you got this demo working</sup></small> | ||
| + | |- valign="top" | ||
| + | |'''Demo URL:'''||http://darcs.haskell.org/yhc/web/jsdemos/Echo.html | ||
| + | |- valign="top" | ||
| + | |'''Haskell Source:'''||http://darcs.haskell.org/yhc/web/jsdemos/Echo.hs<br> http://darcs.haskell.org/yhc/web/jsdemos/Roman.hs (C) Malcolm Wallace | ||
| + | |} | ||
--[[User:DimitryGolubovsky|DimitryGolubovsky]] 19:02, 6 November 2006 (UTC) | --[[User:DimitryGolubovsky|DimitryGolubovsky]] 19:02, 6 November 2006 (UTC) | ||
Revision as of 15:22, 13 November 2006
1 YCR2JS, a Converter of Yhc Core to Javascript
1.1 Table of Contents
- Brief Overview
- Users Guide
- Programmers Guide
- Examples and Demos
| Echo | |
| Description: | Type any text in the input field provided, and see it echoed right above. Just for fun, type any decimal number and see it converted to a Roman number, and vice versa. |
| Features: | Lowest possible level of interaction with web browser:
|
| Tested with: | Netscape 7/Linux, MSIE 6.0/Windows 2000 feel free to add your own combination of browser/os where you got this demo working |
| Demo URL: | http://darcs.haskell.org/yhc/web/jsdemos/Echo.html |
| Haskell Source: | http://darcs.haskell.org/yhc/web/jsdemos/Echo.hs http://darcs.haskell.org/yhc/web/jsdemos/Roman.hs (C) Malcolm Wallace |
--DimitryGolubovsky 19:02, 6 November 2006 (UTC)
