package ppx_open

  1. Overview
  2. Docs

Source file migrate.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
module A = Asttypes
module P = Ppxlib

let arg_label (label : A.arg_label) : P.arg_label =
  match label with
  | A.Nolabel -> P.Nolabel
  | A.Labelled label -> P.Labelled label
  | A.Optional label -> P.Optional label


let mutable_flag (flag : A.mutable_flag) : P.mutable_flag =
  match flag with
  | A.Immutable -> P.Immutable
  | A.Mutable -> P.Mutable
OCaml

Innovation. Community. Security.