March Docs

Hook

Build hooks: deferred actions that run before or after the full build. Any context (paths, config fields) must be captured in the closure at creation time; hooks receive no arguments at run time.

Types

typeFnFn = Fn(Unit -> Result(Unit, String))#
typeSetSet = {#

Functions

fnmarchmarch(f : Unit -> Result(Unit, String)) : Fn#
fnno_hooksno_hooks() : Set#
fnrunrun(hook : Fn) : Result(Unit, String)#
fnrun_allrun_all(hooks : List(Fn)) : Result(Unit, String)#
fnshellshell(cmd : String) : Fn#