Skip to content

Commit 77cc0f1

Browse files
committed
Add ppx_jsobject_conv 0.0.5 -- support for polymorphic types
1 parent abe81c5 commit 77cc0f1

File tree

3 files changed

+31
-0
lines changed
  • packages/ppx_jsobject_conv/ppx_jsobject_conv.0.0.5

3 files changed

+31
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
http:
2+
"https://github.com/little-arhat/ppx_jsobject_conv/archive/v0.0.5.tar.gz"
3+
checksum: "1ecf0ab552d6787eae96856a7d572dfd"

0 commit comments

Comments
 (0)