summaryrefslogtreecommitdiff
blob: 3f3a641df8836fc1acd43be725e26d61bef1b8ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
diff -uNr ppx_typerep_conv-113.33.00/_oasis ppx_typerep_conv-113.33.00+4.03/_oasis
--- ppx_typerep_conv-113.33.00/_oasis	2016-03-09 16:44:55.000000000 +0100
+++ ppx_typerep_conv-113.33.00+4.03/_oasis	2016-03-22 15:13:51.000000000 +0100
@@ -1,8 +1,8 @@
 OASISFormat:      0.4
-OCamlVersion:     >= 4.02.3
+OCamlVersion:     >= 4.03.0
 FindlibVersion:   >= 1.3.2
 Name:             ppx_typerep_conv
-Version:          113.33.00
+Version:          113.33.00+4.03
 Synopsis:         Generation of runtime types from type declarations
 Authors:          Jane Street Group, LLC <opensource@janestreet.com>
 Copyrights:       (C) 2015-2016 Jane Street Group LLC <opensource@janestreet.com>
diff -uNr ppx_typerep_conv-113.33.00/opam ppx_typerep_conv-113.33.00+4.03/opam
--- ppx_typerep_conv-113.33.00/opam	2016-03-18 12:08:01.000000000 +0100
+++ ppx_typerep_conv-113.33.00+4.03/opam	2016-03-22 17:51:38.000000000 +0100
@@ -17,4 +17,4 @@
   "ppx_type_conv"
   "typerep"
 ]
-available: [ ocaml-version >= "4.02.3" ]
+available: [ ocaml-version >= "4.03.0" ]
diff -uNr ppx_typerep_conv-113.33.00/src/ppx_typerep_conv.ml ppx_typerep_conv-113.33.00+4.03/src/ppx_typerep_conv.ml
--- ppx_typerep_conv-113.33.00/src/ppx_typerep_conv.ml	2016-03-09 16:44:55.000000000 +0100
+++ ppx_typerep_conv-113.33.00+4.03/src/ppx_typerep_conv.ml	2016-03-22 15:13:51.000000000 +0100
@@ -134,7 +134,7 @@
       let label = cd.pcd_name.txt in
       let loc = cd.pcd_loc in
       match cd.pcd_args with
-      | [] ->
+      | Pcstr_tuple [] ->
         { label;
           ctyp = None;
           poly = false;
@@ -142,7 +142,7 @@
           index;
           arity_index = no_arg ();
         }
-      | args ->
+      | Pcstr_tuple args ->
         let arity = List.length args in
         let ctyp = ptyp_tuple ~loc args in
         { label;
@@ -152,6 +152,7 @@
           index;
           arity_index = with_arg ();
         }
+      | Pcstr_record _ -> failwith "Pcstr_record not supported"
     in
     List.mapi cds ~f:mapi
 end
@@ -263,7 +264,7 @@
         [%stri let name = [%e estring ~loc full_type_name] ]
       in
       pmod_structure ~loc
-        [ pstr_type ~loc [td]
+        [ pstr_type ~loc Nonrecursive [td]
         ; name_def
         ]