package hardcaml

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

Module Hardcaml.EnumSource

The Enum contains functors that can be used to create special interface modules to represent an enumeration type (ie: a variant with no arguments).

Sourcemodule type S_enum = sig ... end
Sourcemodule type S_enums = sig ... end
Sourcemodule Make_binary (Cases : sig ... end) : S_enum with module Cases := Cases

Constructs a hardcaml interface which represents hardware for the given Enum as an abstract Interface, using a Binary internal representation.

Sourcemodule Make_one_hot (Cases : sig ... end) : S_enum with module Cases := Cases

Similar to Make_binary, but using a one hot representation internally.

Sourcemodule Make_enums (Cases : sig ... end) : S_enums with module Cases := Cases

Make_enums is semantically similar to:

OCaml

Innovation. Community. Security.