package ppx_deriving_yaml

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file ppx_deriving_yaml_runtime.ml

1
2
3
4
5
6
7
8
9
10
11
type t = Yaml.value
type integer = float

let int i = `Float (float_of_int i)
let float f = `Float f
let string s = `String s
let bool b = `Bool b
let list l = `A l
let obj b = `O b
let null = `Null
let of_integer = Float.to_int