package jsonxt

  1. Overview
  2. Docs

Source file json_internal.ml

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
type 'a constrained =
  [< `Assoc of (string * 'a) list
  | `Bool of bool
  | `Float of float
  | `Floatlit of string
  | `Int of int
  | `Intlit of string
  | `List of 'a list
  | `Null
  | `String of string
  | `Stringlit of string
  | `Tuple of 'a list
  | `Variant of string * 'a option ] as 'a

type 'a constrained_stream = 'a constraint 'a =
  [<
  | `Null
  | `Bool of bool
  | `Int of int
  | `Intlit of string
  | `Float of float
  | `Floatlit of string
  | `String of string
  | `Stringlit of string
  | `As
  | `Ae
  | `Os
  | `Oe
  | `Ts
  | `Te
  | `Vs
  | `Ve
  | `Name of string
  | `Infinity
  | `Neg_infinity
  | `Nan
  ] as 'a