Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Hugo Ferreira <hmf@inescporto.pt>
To: Hugo Ferreira <hmf@inescporto.pt>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamlbuild - ocamlfind_query definition won't compile
Date: Fri, 04 Jun 2010 16:33:12 +0100	[thread overview]
Message-ID: <4C091CB8.4010708@inescporto.pt> (raw)
In-Reply-To: <4C0919DF.6000002@inescporto.pt>

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
> 


      reply	other threads:[~2010-06-04 15:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-04 15:21 Hugo Ferreira
2010-06-04 15:33 ` Hugo Ferreira [this message]

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=4C091CB8.4010708@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