package ppx_here

  1. Overview
  2. Docs
Expands [%here] into its location

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_here-v0.12.0.tar.gz
sha256=4ea8ba7eea52980c9ac2a725686580619ebcbef5b32a1a711b410b1f35bfa926
md5=aaae5233a574ebbbba094880a882b330

doc/ppx_here.expander/Ppx_here_expander/index.html

Module Ppx_here_expander

val lift_position : loc:Ppxlib.Location.t -> Ppxlib.Parsetree.expression

Lift a lexing position to a expression

val lift_position_as_string : loc:Ppxlib.Location.t -> Ppxlib.Parsetree.expression

Lift a lexing position to a string expression

val set_dirname : string option -> unit

Same as setting the directory name with -dirname, for tests

val expand_filename : string -> string

Prepend the directory name if -dirname was passed on the command line and the filename is relative.

OCaml

Innovation. Community. Security.