Module Bos_setup
Quick setup for simple programs.
Linking against this module setups Logs and issuing:
open Bos_setupin a module is sufficient to bring Rresult, Astring and Bos in scope. See also how to use this for interpreted programs.
Interpreted programs
To use Bos and this setup in an interpreted program, start the file with:
#!/usr/bin/env ocaml
#use "topfind"
#require "bos.setup"
open Bos_setupTo allow merlin to function correctly issue M-x merlin-use bos.setup in emacs or :MerlinUse bos.setup in vim.
Results
The type for results.
val (>>=) :
('a, 'b) Bos_setup.result ->
('a -> ('c, 'b) Bos_setup.result) ->
('c, 'b) Bos_setup.result(>>=) is R.(>>=).
val (>>|) :
('a, 'b) Bos_setup.result ->
('a -> 'c) ->
('c, 'b) Bos_setup.result(>>|) is R.(>>|).
module R : sig ... endAstring
val strf : ('a, Stdlib.Format.formatter, unit, string) Stdlib.format4 -> 'astrf is Astring.strf.
^ is Astring.(^).
module Char : sig ... endmodule String : sig ... endBos
module Pat : sig ... endmodule Cmd : sig ... endmodule OS : sig ... endFmt & Logs
Note. The following aliases are strictly speaking not needed but they allow to end-users to use them by expressing a single dependency towards bos.setup.
module Fmt : sig ... endmodule Logs : sig ... end