Module Functoria_app.Codegen

Code generation helpers.

val generated_header : ?⁠argv:string array -> ?⁠time:Ptime.t -> unit -> string
val append : Stdlib.Format.formatter -> ('aStdlib.Format.formatter, unit, unit, unit, unit) Stdlib.format6 -> 'a
val newline : Stdlib.Format.formatter -> unit
val set_main_ml : string -> unit

Define the current main file.

val append_main : ('aStdlib.Format.formatter, unit, unit, unit, unit) Stdlib.format6 -> 'a

Add some string to main.ml.

val newline_main : unit -> unit

Add a newline to main.ml.