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.