[ocaml-platform] Installing custom toplevel printers with findlib
Török Edwin
edwin+ml-ocaml at etorok.net
Sat Mar 23 10:13:26 GMT 2013
On 03/23/2013 11:56 AM, Daniel Bünzli wrote:
> Hello,
>
> I'm kind at lost to do a simple thing I'd like for one of my package. I would like to install custom printers for the toploop so that when one does:
>
> # #use "topfind";;
> # #require "gg";;
>
> The printers are installed. The question are:
>
> 1) Is there support for that in ocamlfind (like a convention that a particular file from the package directory is #use'd, on #require) ? Can't find anything special here [1].
>
> 2) How do I specify that in oasis ?
>
> Or maybe anyone knows a package doing that I could use as a blueprint.
See the toploop predicate:
http://docs.camlcity.org/docs/godisrc/ocamlnet-3.6.3.tar.gz/ocamlnet-3.6.3/src/netstring/netstring_top.ml
http://docs.camlcity.org/docs/godisrc/ocamlnet-3.6.3.tar.gz/ocamlnet-3.6.3/src/netstring/META.in
--Edwin
More information about the Platform
mailing list