Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
syntax extensions using batteries
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Tiphaine Turpin <Tiphaine.Turpin@i...>
Subject: syntax extensions using batteries

I can't use the syntax extension I just wrote : I don't know how to make
camlp4 load a module which depends on batteries.

First attempt: if I do something like

    ocamlfind batteries/ocamlc -pp "camlp4o pa_prolog.cmo"

then pa_prolog is never loaded.

Second attempt: if I try

    ocamlfind batteries/ocamlc -ppopt pa_prolog.cmo

then I have to also add -ppopt batteries.cma, then sexplib.cma, which
fails due to unavailable native functions.

However, the extension works fine in the toplevel (ocamlfind

Any Ideas ? How can I achieve "batteries/camlp4" ?