Last active
November 21, 2017 10:28
-
-
Save Leonidas-from-XIV/ffbf7a8afba9c18a02e02f4f5e42e068 to your computer and use it in GitHub Desktop.
Failure to run js_of_ocaml-ppx
This file contains 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
This file contains 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
let _ = | |
Js.export "myMathLib" | |
(object%js | |
method add x y = x +. y | |
method abs x = abs_float x | |
val zero = 0. | |
end) |
This file contains 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
;; 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))))) |
This file contains 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
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