Created
January 2, 2016 23:40
-
-
Save dysinger/f41013b6080628229d3a to your computer and use it in GitHub Desktop.
Trying to call a jquery plugin with ghcjs & ghcjs-jquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- .... regular ghcjs & ghcjs-jquery imports | |
| foreign import javascript unsafe | |
| "$.jqplot($1, [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]])" | |
| js_jqplot :: JSString -> IO () | |
| -- .... then in the code to render the page | |
| JQ.ready (js_jqplot "mychart") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment