package ppxx

  1. Overview
  2. Docs

Module Ppxx.UtilsSource

Sourceval (&) : ('a -> 'b) -> 'a -> 'b

I prefer (&) to (@@)

Sourceval (!!%) : ('a, Format.formatter, unit) format -> 'a

Synonym of Format.eprintf

Sourceval flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c

flip f x y = f y x

Sourceval flip2 : ('a -> 'b -> 'c -> 'd) -> 'b -> 'c -> 'a -> 'd

flip2 f x y z = f y z x

Sourcemodule Format : sig ... end
Sourcemodule Option : sig ... end
Sourcemodule List : sig ... end
Sourcemodule String : sig ... end
Sourcemodule Hashtbl : sig ... end
Sourcemodule Filename : sig ... end
Sourceval protect : (unit -> 'a) -> ('a, exn) result

Catch the exceptions

Sourceval unprotect : ('a, exn) result -> 'a

Reraise the caught exception

Sourceval warnf : ('a, Format.t, unit, unit) format4 -> 'a

Wraps formatting between "@[Warning:@ "] and ["@]@."

Sourceval raise_errorf : ?loc:Warnings.loc -> ?sub:Location.msg list -> ('a, Format.t, unit, 'b) format4 -> 'a
OCaml

Innovation. Community. Security.