-
Notifications
You must be signed in to change notification settings - Fork 15
Yaml Driver
Anders Peter Fugmann edited this page Apr 15, 2019
·
1 revision
Converts to and from Yaml.value
Package ppx_protocol_conv_yaml
The module Also provides means for chaning default attribute behaviour
and record field naming convensions, by using the functor Yaml.Make(P:Parameters)
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