From: Ivan Gotovchits <ivg@ieee.org>
To: caml-list@inria.fr
Subject: [Caml-list] using batteries syntax extensions
Date: Tue, 16 Oct 2012 08:19:52 +0400 [thread overview]
Message-ID: <87mwznxd3r.fsf@golf.niidar.ru> (raw)
Hello,
I'm trying to enable syntax extensions, provided by the Batteries. I've
downloaded ``ocamlfind enabled'' myocamlbuild.ml and added the following
to my _tags file:
<*> : pkg_batteries.syntax,syntax_camlp4o,use_batteries,...
And, when I've tried for a new syntax
let n = 2 * m where m = 2
compiler complained:
ocamlfind ocamlc -c -package batteries.syntax -package oUnit -package
threads -package uuidm -syntax camlp4o -thread -package batteries
-syntax camlp4o -I +gsl -I +res -o mack.cmo mack.ml
File "mack.ml", line 11, characters 12-13:
Error: Unbound value m
What am I doing wrong?
System: Debian Squeeze 6.0.5
Ocaml: 3.11.2-2
Batteries: 1.2.2-1
Thank in advance, for any help.
P.S. I cannot upgrade to a more recent versions, due to certification issues...
--
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"...
next reply other threads:[~2012-10-16 4:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-16 4:19 Ivan Gotovchits [this message]
2012-10-16 12:43 ` Edgar Friendly
2012-10-17 3:29 ` Ivan Gotovchits
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwznxd3r.fsf@golf.niidar.ru \
--to=ivg@ieee.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).