<discocaml>
<hockletock> is this all in one package?
<discocaml>
<hockletock> anyway you can add a reference to the module in your library's top level module, then users of your library can get to it through your top level library
<discocaml>
<hockletock> dune does some magic if you DON'T create a .ml file for your library to include all the modules in your library directory (directory with a dune file defining a library only)
<discocaml>
<hockletock> so if your project directory lib/dune defines a library foolib, create lib/foolib.ml with references to all the modules you want to expose (including ones that were previously automatically exposed -- creating foolib.ml prevents that automatic behavior because you are taking manual control)
<discocaml>
<hockletock> e.g. you have modules P and Q and an external library defines module X, your foolib.ml would have lines `module P = P` `module Q = Q` `module X = OtherLib.X` and now users of your library can get to OtherLib.X via Foolib.X
<discocaml>
<astreamingcomesacrossthesky> Sorry I really phoned it on that explanation. What I'm doing is consuming an external library I downloaded from opam. It has a library that it uses internally to connect to postgres, but in order for it to find this library, you have to refer to it in the calling code. What I ended up doing is just ```ocaml
<discocaml>
<astreamingcomesacrossthesky>
<discocaml>
<astreamingcomesacrossthesky> module P = struct
<discocaml>
<astreamingcomesacrossthesky> let _ = The_module.a_random_val
<discocaml>
<astreamingcomesacrossthesky> end
<discocaml>
<astreamingcomesacrossthesky> ```
<discocaml>
<astreamingcomesacrossthesky>
<discocaml>
<astreamingcomesacrossthesky> which works, but is there a less weird way to do it?
<discocaml>
<hockletock> I think this is what -linkall is for? but I've never used it myself
<discocaml>
<astreamingcomesacrossthesky> I saw that referenced somewhere. But is that an `ocamlopt` flag?
<discocaml>
<hockletock> yes
YuGiOhJCJ has joined #ocaml
bartholin has quit [Quit: Leaving]
pesterev has quit [Ping timeout: 260 seconds]
<discocaml>
<sim642> Linkall is a very crude thing. You should avoid it if possible and just re-export or force the linking of the individual thing you want
<discocaml>
<sim642> Linkall will make your library/executable massive
pesterev has joined #ocaml
pi3ce has quit [Ping timeout: 265 seconds]
pi3ce has joined #ocaml
Serpent7776 has joined #ocaml
raskol has quit [Ping timeout: 245 seconds]
bartholin has joined #ocaml
hwj has joined #ocaml
Anarchos has joined #ocaml
bartholin has quit [Quit: Leaving]
adrien_ is now known as adrien
hwj has quit [Remote host closed the connection]
hwj has joined #ocaml
dylanj has quit [Remote host closed the connection]
dylanj has joined #ocaml
<discocaml>
<andrew.0327> I’ll help 20 people on how to earn $70k or more within 72hours from the Crypto Market, but you’ll pay me a 10% of your profit when you receive it. Ask me how!!
<discocaml>
<andrew.0327> If interested, send me a direct message. For more information…contact via.. TG or WhatsApp
torretto_ has quit [Remote host closed the connection]
torretto has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
pesterev has quit [Remote host closed the connection]
pesterev has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Anarchos has joined #ocaml
pesterev has quit [Ping timeout: 276 seconds]
pesterev has joined #ocaml
jbowen has quit [Ping timeout: 272 seconds]
jbowen has joined #ocaml
kurfen has quit [Read error: Connection reset by peer]
kurfen has joined #ocaml
mbuf has joined #ocaml
lain` has quit [Ping timeout: 248 seconds]
lain` has joined #ocaml
raskol has joined #ocaml
<discocaml>
<carolpaiffer_> I’ll help 10 people to earn $15k within 72 hours but you will pay me 10% of your profit when you receive it. Note only interested people should apply, drop a message on inbox let’s get started by asking (HOW)
cross_ is now known as cross
hwj has quit [Ping timeout: 272 seconds]
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
pesterev1 has joined #ocaml
pesterev has quit [Ping timeout: 248 seconds]
pesterev1 is now known as pesterev
pesterev has quit [Ping timeout: 272 seconds]
pesterev has joined #ocaml
pesterev has quit [Ping timeout: 248 seconds]
pesterev has joined #ocaml
Inline has joined #ocaml
mbuf has quit [Ping timeout: 246 seconds]
Tuplanolla has joined #ocaml
pesterev has quit [Ping timeout: 248 seconds]
pesterev has joined #ocaml
pesterev has quit [Ping timeout: 255 seconds]
euphores has quit [Quit: Leaving.]
Anarchos has quit [Quit: Vision[]: i've been blurred!]