package crunch

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

Module CrunchSource

Expose the contents of a directory as a static filesystem.

Sourcetype t

The type of a crunch.

Sourceval make : unit -> t

make () is an empty crunch.

Sourceval output_generated_by : out_channel -> string -> unit

output_generated_by oc binary_name generate a comments saying who generates that file.

Sourceval scan_file : t -> string -> string -> t

scan_file t root file records the contents of root/file in t.

Sourceval output_implementation : t -> out_channel -> unit

Output the footer.

Sourceval output_lwt_skeleton_ml : out_channel -> unit

Output the Lwt helpers.

Sourceval output_lwt_skeleton_mli : out_channel -> unit

Output the Lwt helpers.

Sourceval output_plain_skeleton_ml : t -> out_channel -> unit

Output a simple skeleton.

Sourceval walk_directory_tree : t -> string list -> (t -> string -> string -> t) -> string -> t

walk t extensions fn root_dir traverses all the directory structure starting from root_dir and keeping only the extensions provided (or do not filter anything if the list is empty).