From: Hugo Ferreira <hmf@inescporto.pt>
To: caml-list@yquem.inria.fr
Subject: ocamlbuild - ocamlfind_query definition won't compile
Date: Fri, 04 Jun 2010 16:21:03 +0100 [thread overview]
Message-ID: <4C0919DF.6000002@inescporto.pt> (raw)
Hello,
I have been looking at several examples that use ocamlfind to
add a library to the ocamlbuild process. An example is:
let ocamlfind_query pkg =
let cmd = Printf.sprintf "ocamlfind query %s" (Filename.quote pkg) in
My_unix.run_and_open cmd (fun ic ->
Log.dprintf 5 "Getting Ocaml directory from command %s" cmd;
input_line ic)
However I get the following error:
Error: This expression has type string but an expression was expected of
type
'a -> 'b -> 'c
I am using version 3.11.2. Can anyone tell me what I'm making the error?
TIA,
Hugo F.
next reply other threads:[~2010-06-04 15:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 15:21 Hugo Ferreira [this message]
2010-06-04 15:33 ` [Caml-list] " Hugo Ferreira
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=4C0919DF.6000002@inescporto.pt \
--to=hmf@inescporto.pt \
--cc=caml-list@yquem.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