caml-list - the Caml user's mailing list
 help / Atom feed
From: "Nicolás Ojeda Bär" <nicolas.ojeda.bar@lexifi.com>
To: Ian Zimmerman <itz@very.loosely.org>
Cc: Caml Mailinglist <caml-list@inria.fr>
Subject: Re: [Caml-list] utop - how to find deep dependencies
Date: Mon, 12 Aug 2019 06:35:32 +0000
Message-ID: <CADK7aFO6c8_KN9d3GjyC9fAetzKf0mYCoD3ubZVf852Nx=CCRg@mail.gmail.com> (raw)
In-Reply-To: <20190811211817.tryiala7zlsewgyb@matica.foolinux.mooo.com>

Hi Ian,

Not sure about utop in particular, but in the vanilla ocaml toplevel,
you can do:

    #use "topfind";;
    #require "package";;

To load a findlib package and all its dependencies in one go. See

    http://projects.camlcity.org/projects/dl/findlib-1.8.1/doc/ref-html/lib/Topfind.html

for more information.

Best wishes,
Nicolás

On Sun, Aug 11, 2019 at 11:18 PM Ian Zimmerman <itz@very.loosely.org> wrote:
>
> I thought this kind of thing would be easier with utop, but alas:
>
> utop[3]> #pwd;;
> /home/itz
> utop[4]> #load_rec "sgf.cma";;
> Cannot find file sgf.cma.
> utop[5]> #directory "+../sgf";;
> utop[6]> #load_rec "sgf.cma";;
> Error: Reference to undefined global `Sedlexing'
> utop[7]> #directory "+../sedlex";;
> utop[8]> #load_rec "sgf.cma";;
> Error: Reference to undefined global `Sedlexing'
> utop[9]> #load_rec "sedlex.cma";;
> Error: Reference to undefined global `Ast_mapper_class'
>
> Is there any way to integrate with findlib so I don't have to discover
> the whole dependencies tree one by one?
>
> --
> Please don't Cc: me privately on mailing lists and Usenet,
> if you also post the followup to the list or newsgroup.
> To reply privately _only_ on Usenet and on broken lists
> which rewrite From, fetch the TXT record for no-use.mooo.com.

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-11 21:18 Ian Zimmerman
2019-08-12  6:35 ` Nicolás Ojeda Bär [this message]

Reply instructions:

You may reply publically 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='CADK7aFO6c8_KN9d3GjyC9fAetzKf0mYCoD3ubZVf852Nx=CCRg@mail.gmail.com' \
    --to=nicolas.ojeda.bar@lexifi.com \
    --cc=caml-list@inria.fr \
    --cc=itz@very.loosely.org \
    /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

caml-list - the Caml user's mailing list

Archives are clonable:
	git clone --mirror http://inbox.vuxu.org/caml-list
	git clone --mirror https://inbox.ocaml.org/caml-list

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.caml-list


AGPL code for this site: git clone https://public-inbox.org/ public-inbox