package ppx_tools_versioned

  1. Overview
  2. Docs

Provides a unified abstraction over differences in Parsetree.constant and Asttypes.constant * types defined in ocaml 4.03 and 4.02 respectively

type t = Migrate_parsetree.Ast_411.Parsetree.constant =
  1. | Pconst_integer of string * char option
  2. | Pconst_char of char
  3. | Pconst_string of string * Migrate_parsetree.Ast_411.Location.t * string option
  4. | Pconst_float of string * char option

Convert Asttypes.constant to Constant.t

Convert Constant.t to Asttypes.constant

OCaml

Innovation. Community. Security.