avsm/ocaml-json-tc — Issue #2: No polymorphic data type support?
Author: camlspotter
Created: 2012-02-06 08:27:33+00:00
State: open

Hi,

I am playing with ocaml-json-tc and found that the following data type definition is rejected:

module Status = struct
type t = { status : int; msg : string } with json
end

type 'a t = {
meta : Status.t;
response : 'a
} with json

I was hoping that the above creates higher order functions which take encoding/decoding functions for 'a.
Do I miss something, or doesn't ocaml-json-tc just support it ?

Jun