* ocamlbuild - ocamlfind_query definition won't compile
@ 2010-06-04 15:21 Hugo Ferreira
2010-06-04 15:33 ` [Caml-list] " Hugo Ferreira
0 siblings, 1 reply; 2+ messages in thread
From: Hugo Ferreira @ 2010-06-04 15:21 UTC (permalink / raw)
To: caml-list
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] ocamlbuild - ocamlfind_query definition won't compile
2010-06-04 15:21 ocamlbuild - ocamlfind_query definition won't compile Hugo Ferreira
@ 2010-06-04 15:33 ` Hugo Ferreira
0 siblings, 0 replies; 2+ messages in thread
From: Hugo Ferreira @ 2010-06-04 15:33 UTC (permalink / raw)
To: Hugo Ferreira; +Cc: caml-list
Hello,
My apologies for the noise.
Hugo Ferreira wrote:
> 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)
>
>
Problem is I forgot to add the ";;"
Hugo F.
> 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.
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-04 15:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-04 15:21 ocamlbuild - ocamlfind_query definition won't compile Hugo Ferreira
2010-06-04 15:33 ` [Caml-list] " Hugo Ferreira
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox