package GT

  1. Overview
  2. Docs
Generic programming with extensible transformations

Install

Dune Dependency

Authors

Maintainers

Sources

0.5.1.tar.gz
sha256=fe0aa1e40afd36f7c1fcd992c408261d0b5645cea080ea98bc5dbf0b8682187f
sha512=8db0f2d8db4d7c11cf55835ba2b6c4f5ee1e8c09a4bdc2a9c57d50958ff8654688d4c8596079dfd1027d8b9e878f6e1b0d14341bcdf5f63cf96a45b2a571f3cb

doc/eval/Eval/index.html

Module EvalSource

Eval plugin: functors + inherited value to make decisions about how to map values.

Essentially, is a Gmap trait with polymorphic inherited attributes.

Is a simplified version of Stateful trait: doesn't allow to pass modified environment through transformation.

Inherited attributes' type (both default and for type parameters) is 'env.

Synthetized attributes' type (both default and for type parameters) is _ t.

For type declaration type ('a,'b,...) typ = ... it will create transformation function with type

('env -> 'a -> 'a2) -> ('env -> 'b -> 'b2) -> ... -> 'env -> ('a,'b,...) typ -> ('a2, 'b2, ...) typ

Sourceval trait_name : string
Sourceval param_name_mangler : string -> string
Sourceval register : unit -> unit
OCaml

Innovation. Community. Security.