caml-list - the Caml user's mailing list
 help / Atom feed
From: Nicolás Ojeda Bär <>
To: Ian Zimmerman <>
Cc: Caml Mailinglist <>
Subject: Re: [Caml-list] utop - how to find deep dependencies
Date: Mon, 12 Aug 2019 06:35:32 +0000
Message-ID: <> (raw)
In-Reply-To: <>

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

for more information.

Best wishes,

On Sun, Aug 11, 2019 at 11:18 PM Ian Zimmerman <> 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

      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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \ \

* 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

AGPL code for this site: git clone public-inbox