Created
December 16, 2012 06:58
Revisions
-
alavrik created this gist
Dec 16, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ .variant [ .name example .option [ .name ConsOne .type int-array .ocaml-name "ConsOne" ] .option [ .name ConsTwo .type float-array .ocaml-name "ConsTwo" ] ] .list [ .name float-array .type float .ocaml-array ] .list [ .name int-array .type int .ocaml-array ] This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ module rec T_piqi : sig type float64 = float type float = T_piqi.float64 type example = [ | `ConsOne of T_piqi.int_array | `ConsTwo of T_piqi.float_array ] type float_array = T_piqi.float array type int_array = int array end = T_piqi