package ppxx

  1. Overview
  2. Docs
Ppxx: a small extension library for writing PPX preprocessors

Install

Dune Dependency

Authors

Maintainers

Sources

ppxx-2.4.0.tar.bz2
sha256=4b901fdeec400dfa68975c5c64da19dd43756a08904940c06b05ee148e15f427
md5=beb55ccb353123678406e7d30e6d954f

doc/ppxx/Ppxx/Utils/index.html

Module Ppxx.Utils

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

I prefer (&) to (@@)

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

Synonym of Format.eprintf

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

flip f x y = f y x

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

flip2 f x y z = f y z x

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

Catch the exceptions

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

Reraise the caught exception

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

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

OCaml

Innovation. Community. Security.