package yocaml

  1. Overview
  2. Docs

Utilities for dealing with tasks without dynamic dependencies.

val on_content : ('content_in, 'content_out) t -> ('meta * 'content_in, 'meta * 'content_out) t

on_content arr lift an arrow to deal only with the content of a task.

val on_metadata : ('meta_in, 'meta_out) t -> ('meta_in * 'content, 'meta_out * 'content) t

on_metadata arr lift an arrow to deal only with the associated metadata of a task.

val keep_content : unit -> ('meta * 'content, 'content) t

keep_content () drop the metadata part of the computed task.

val empty_body : unit -> ('meta, 'meta * string) t

empty_body () attach an empty body (an empty string) to a task.

OCaml

Innovation. Community. Security.