caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] ppx_import 0.1
@ 2014-08-12  4:37 Peter Zotov
  0 siblings, 0 replies; only message in thread
From: Peter Zotov @ 2014-08-12  4:37 UTC (permalink / raw)
  To: caml-list

Hello,

I'm pleased to announce ppx_import 0.1. It will be available shortly in 
OPAM.

ppx_import is a syntax extension that allows to pull in types or 
signatures from compiled interface files.

For example:

# type loc = [%import: Location.t];;
type loc = Location.t = { loc_start : Lexing.position; loc_end : 
Lexing.position; loc_ghost : bool; }
# module type Hashable = [%import: (module Hashtbl.HashedType)];;
module type Hashable = sig type t val equal : t -> t -> bool val hash : 
t -> int end

See more documentation on GitHub:
https://github.com/whitequark/ppx_import

-- 
Peter Zotov

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-12  4:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-12  4:37 [Caml-list] [ANN] ppx_import 0.1 Peter Zotov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).