File: variants.mli

package info (click to toggle)
typerep 111.17.00-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,076 kB
  • ctags: 3,093
  • sloc: ml: 18,181; makefile: 55
file content (37 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (2)
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
open Core.Std
open Typerep_experimental.Std

module M1 : sig
  type t =
  | A of int
  | B of float
  val typerep_of_t : t Typerep.t
end

module M2 : sig
  type t = [
  | `A of int
  | `B of float
  ]
  val typerep_of_t : t Typerep.t
end

module M3 : sig
  type t =
  | M1 of M1.t
  | M2 of M2.t
  val typerep_of_t : t Typerep.t
end

module P1 : sig
  type 'a t = [
  | `A of 'a
  | `B of float
  ]
  val typerep_of_t : 'a Typerep.t -> 'a t Typerep.t
end

module I1 : sig
  type t = A of [ `A ]
  val typerep_of_t : t Typerep.t
end