Documentation
bos.setup lib
Bos_setup
Module
Quick setup for simple programs.
Linking against this module setups Logs
and issuing:
open Bos_setup
in a module is sufficient to bring Rresult
, Astring
and Bos
in scope. See also how to use this for interpreted programs .
Interpreted programsTo use Bos
and this setup in an interpreted program, start the file with:
#!/usr/bin/env ocaml
#use "topfind"
#require "bos.setup"
open Bos_setup
To allow merlin to function correctly issue M-x merlin-use bos.setup
in emacs
or :MerlinUse bos.setup
in vim
.
Resultstype ('a, 'b) result = ('a , 'b ) Stdlib .result =
| Ok of 'a
| Error of 'b
val (>>|) : ('a , 'b ) result -> ('a -> 'c ) -> ('c , 'b ) result
Astringval strf : ('a , Stdlib .Format.formatter, unit, string) Stdlib .format4 -> 'a
val (^) : string -> string -> string
module Char : sig ... end
Bos Fmt & LogsNote. 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 Logs : sig ... end