Skip to content

Yaml Driver

Anders Peter Fugmann edited this page Apr 15, 2019 · 1 revision

Yaml

Converts to and from Yaml.value Package ppx_protocol_conv_yaml

Options

The module Also provides means for chaning default attribute behaviour and record field naming convensions, by using the functor Yaml.Make(P:Parameters)

Types

Ocaml type Generates Accepts
string, char, bytes `String `String
int,int32,int64 `Float `Float*
nativeint `Float `Float*
float `Float `Float
bool `Bool `Boolt
unit `List [] `List []
'a list, 'a array `List 'a list `List 'a list
'a option `Null or 'a `Null or 'a
'a ref, lazy 'a 'a 'a
Yaml.t Yaml.t Yaml.t

(*) Expects abs(round(f) - f) < 0.000001

Clone this wiki locally