Skip to content

Instantly share code, notes, and snippets.

@dysinger
Created January 2, 2016 23:40
Show Gist options
  • Select an option

  • Save dysinger/f41013b6080628229d3a to your computer and use it in GitHub Desktop.

Select an option

Save dysinger/f41013b6080628229d3a to your computer and use it in GitHub Desktop.
Trying to call a jquery plugin with ghcjs & ghcjs-jquery
-- .... 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