Skip to content

Instantly share code, notes, and snippets.

@Drup
Last active August 29, 2015 14:00
Show Gist options
  • Save Drup/11091160 to your computer and use it in GitHub Desktop.
Save Drup/11091160 to your computer and use it in GitHub Desktop.
test weak + js_of_ocaml
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<script src="foo.js"></script>
</body>
</html>
open BatList
let _ = BatList.iter (fun x -> ()) []
ocamlbuild -use-ocamlfind -package batteries.core foo.byte
js_of_ocaml -noruntime +js_of_ocaml/runtime.js _build/foo.byte -o foo.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment