File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
packages/ppx_jsobject_conv/ppx_jsobject_conv.0.0.5 Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ Ppx plugin for Typeconv to derive conversion from ocaml types to js objects to use with js_of_ocaml.
2
+
3
+ For types annotated with [@@deriving jsobject], plugin will generate pair of functions: *_of_jsobject/jsobject_of_*
4
+ to convert from/to JavaScript objects. This allows one to use clean OCaml types to describe their logic, while having ability
5
+ to easy go down to js types. Easy conversion from js objects to OCaml types means also, one can use fast native JSON.parse to
6
+ convert JSON to OCaml types.
Original file line number Diff line number Diff line change
1
+ opam-version: "1.2"
2
+ maintainer: "Roma Sokolov <
[email protected] >"
3
+ authors: [ "Roma Sokolov <
[email protected] >" ]
4
+ license: "MIT"
5
+ homepage: "https://github.com/little-arhat/ppx_jsobject_conv"
6
+ bug-reports: "https://github.com/little-arhat/ppx_jsobject_conv/issues"
7
+ dev-repo: "git://github.com/little-arhat/ppx_jsobject_conv.git"
8
+ tags: [ "syntax" "jsoo" "javascript"]
9
+ substs: [ "pkg/META" ]
10
+ build: [
11
+ "ocaml" "pkg/build.ml" "native=%{ocaml-native}%"
12
+ "native-dynlink=%{ocaml-native-dynlink}%"
13
+ ]
14
+ depends: [
15
+ "js_of_ocaml"
16
+ "result"
17
+ "ppx_type_conv" {>= "113.24.00"}
18
+ "ppx_driver"
19
+ "ppx_core"
20
+ "ocamlfind" {build}
21
+ "ocamlbuild" {build}
22
+ ]
Original file line number Diff line number Diff line change
1
+ http:
2
+ "https://github.com/little-arhat/ppx_jsobject_conv/archive/v0.0.5.tar.gz"
3
+ checksum: "1ecf0ab552d6787eae96856a7d572dfd"
You can’t perform that action at this time.
0 commit comments