Skip to content

Instantly share code, notes, and snippets.

@camlspotter
Created March 1, 2017 13:57
Show Gist options
  • Save camlspotter/c8690186523e62bd29db7c3400824dd5 to your computer and use it in GitHub Desktop.
Save camlspotter/c8690186523e62bd29db7c3400824dd5 to your computer and use it in GitHub Desktop.
(** Generation of typerep methods for tag-checking *)
(* XXX simply moved to sig.ml ? *)
open Typerep_lib.Std
module Sig = struct
open Sig
type res = [%import: Sig.res]
and ftypekind = [%import: Sig.ftypekind]
and fconstructor_arguments = [%import: Sig.fconstructor_arguments]
and fsignature_item = [%import: Sig.fsignature_item]
and fsignature = [%import: Sig.fsignature]
and fmodule = [%import: Sig.fmodule]
[@@deriving typerep]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment