caml-list - the Caml user's mailing list
 help / Atom feed
* [Caml-list] utop - how to find deep dependencies
@ 2019-08-11 21:18 Ian Zimmerman
  2019-08-12  6:35 ` Nicolás Ojeda Bär
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Zimmerman @ 2019-08-11 21:18 UTC (permalink / raw)
  To: Caml Mailinglist

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] utop - how to find deep dependencies
  2019-08-11 21:18 [Caml-list] utop - how to find deep dependencies Ian Zimmerman
@ 2019-08-12  6:35 ` Nicolás Ojeda Bär
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolás Ojeda Bär @ 2019-08-12  6:35 UTC (permalink / raw)
  To: Ian Zimmerman; +Cc: Caml Mailinglist

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-11 21:18 [Caml-list] utop - how to find deep dependencies Ian Zimmerman
2019-08-12  6:35 ` Nicolás Ojeda Bär

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