package ppx_deriving_hardcaml

  1. Overview
  2. Docs
Rewrite OCaml records for use as Hardcaml Interfaces

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_deriving_hardcaml-v0.15.0.tar.gz
sha256=4f0c0be1547edd7d2e0754c3333c42411712362c9c2792a15da78c1ceba81b94

doc/src/ppx_deriving_hardcaml.runtime/ppx_deriving_hardcaml_runtime.ml.html

Source file ppx_deriving_hardcaml_runtime.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
open Base

module Array = struct
  include Array

  let for_ length ~f =
    for i = 0 to length - 1 do
      f i
    done;
  ;;
end
module Int       = Int
module Interface = Hardcaml.Interface
module List      = List

let concat = String.concat
OCaml

Innovation. Community. Security.