Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Leonidas-from-XIV
Last active November 21, 2017 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Leonidas-from-XIV/ffbf7a8afba9c18a02e02f4f5e42e068 to your computer and use it in GitHub Desktop.
Save Leonidas-from-XIV/ffbf7a8afba9c18a02e02f4f5e42e068 to your computer and use it in GitHub Desktop.
Failure to run js_of_ocaml-ppx
let _ =
Js.export "myMathLib"
(object%js
method add x y = x +. y
method abs x = abs_float x
val zero = 0.
end)
;; comment out to make `FLG -ppx` line appear in .merlin
(library
((name collab_lib)
(modules (collab_lib))))
(executable
((name collab_vis)
(modules (collab_vis))
(public_name collab-vis)
(libraries (js_of_ocaml js_of_ocaml-lwt))
(preprocess (pps (js_of_ocaml-ppx)))))
opam-version: "1.2"
maintainer: "Marek Kubica <marek@xivilization.net>"
author: "Marek Kubica <marek@xivilization.net>"
build: [["jbuilder" "build" "-p" name "-j" jobs]]
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]]
depends: [
"js_of_ocaml"
"js_of_ocaml-ppx"
"ppx_driver"
"jbuilder" {build}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment