Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ocamlbuild with findlib + camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dario Teixeira <darioteixeira@y...>
Subject: Re: [Caml-list] Ocamlbuild with findlib + camlp4
> > 
> > let packages =
> >         Findlib.init ();
> >         Fl_package_base.list_packages ()
> 
> Great idea!
> 
> Does these functions exists?

Hi,

Of course!  The following is a valid Ocaml programme that will
list all packages available via findlib:  (you must link in
findlib.cma of course)

let () =
        Findlib.init ();
        let pkgs =  Fl_package_base.list_packages () in
        List.iter print_endline pkgs

Cheers,
Dario



      ___________________________________________________________ 
Rise to the challenge for Sport Relief with Yahoo! For Good  

http://uk.promotions.yahoo.com/forgood/