package ocaml-base-compiler

  1. Overview
  2. Docs
Official 4.05.0 release

Install

Dune Dependency

Authors

Maintainers

Sources

4.05.0.tar.gz
sha256=e5d8a6f629020c580473d8afcfcb06c3966d01929f7b734f41dc0c737cd8ea3f
md5=7e0079162134336a24b9028349c756bb

doc/ocamlcommon/Typeopt/index.html

Module Typeopt

val is_function_type : Env.t -> Types.type_expr -> (Types.type_expr * Types.type_expr) option
val is_base_type : Env.t -> Types.type_expr -> Path.t -> bool
val maybe_pointer_type : Env.t -> Types.type_expr -> Lambda.immediate_or_pointer
val array_type_kind : Env.t -> Types.type_expr -> Lambda.array_kind
val array_pattern_kind : Typedtree.pattern -> Lambda.array_kind
val bigarray_type_kind_and_layout : Env.t -> Types.type_expr -> Lambda.bigarray_kind * Lambda.bigarray_layout
val value_kind : Env.t -> Types.type_expr -> Lambda.value_kind
val lazy_val_requires_forward : Env.t -> Types.type_expr -> bool

Whether a forward block is needed for a lazy thunk on a value, i.e. if the value can be represented as a float/forward/lazy

OCaml

Innovation. Community. Security.