package ocaml-migrate-parsetree

  1. Overview
  2. Docs
Convert OCaml parsetrees between different versions

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-migrate-parsetree-v1.3.1.tbz
sha256=83e4955a6fd6b494646ab92c476840ea96b5fb434435c287e7ad3e6efadc8338
sha512=7da86f9596dd1439990a6f087fdeba64a0f3ce2634473be4cca92ecc02b6fcd97917956890fbe35b3cba5a126d007afec6ede1e4afd0a5218c89fd6079ad4182

doc/ocaml-migrate-parsetree/Migrate_parsetree/Def/index.html

Module Migrate_parsetree.Def

type missing_feature =
  1. | Pexp_letexception
  2. | Ppat_open
  3. | Pexp_unreachable
  4. | PSig
  5. | Pcstr_record
  6. | Pconst_integer
  7. | Pconst_float
  8. | Pcl_open
  9. | Pcty_open
  10. | Oinherit
  11. | Pwith_typesubst_longident
  12. | Pwith_modsubst_longident
  13. | Pexp_open
  14. | Pexp_letop
  15. | Psig_typesubst
  16. | Psig_modsubst
  17. | Otyp_module

Features which are not available in all versions of the frontend

exception Migration_error of missing_feature * Location.t

Exception thrown by migration functions when a feature is not supported.

val missing_feature_description : missing_feature -> string

missing_feature_description x is a text describing the feature x.

val missing_feature_minimal_version : missing_feature -> string

missing_feature_minimal_version x is the OCaml version where x was introduced.

val migration_error_message : missing_feature -> string

Turn a missing feature into a reasonable error message.

OCaml

Innovation. Community. Security.