companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
steenuil has quit [Read error: Connection reset by peer]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
motherfsck has quit [Remote host closed the connection]
Haudegen has quit [Ping timeout: 276 seconds]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
theglass has quit [Remote host closed the connection]
theglass has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
zebrag has quit [Quit: Konversation terminated!]
motherfsck has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
seliopou has quit [Ping timeout: 240 seconds]
seliopou has joined #ocaml
amiloradovsky has quit [Ping timeout: 260 seconds]
mfp_ has quit [Ping timeout: 256 seconds]
rock64 has quit [Ping timeout: 264 seconds]
rock64 has joined #ocaml
osa1 has quit [Ping timeout: 272 seconds]
metreo has quit [Quit: metreo]
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ocaml
mmohammadi9812 has quit [Read error: Connection reset by peer]
mmohammadi9812 has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
mmohammadi9812 has quit [Ping timeout: 240 seconds]
mmohammadi9812 has joined #ocaml
mxns has joined #ocaml
mengu has joined #ocaml
mengu has quit [Ping timeout: 240 seconds]
<d_bot> <Clément> Hey
mbuf has joined #ocaml
osa1 has joined #ocaml
mxns has quit [Ping timeout: 276 seconds]
mengu has joined #ocaml
decentpenguin has quit [Read error: Connection reset by peer]
waleee-cl has quit [Quit: Connection closed for inactivity]
decentpenguin has joined #ocaml
mmohammadi9812 has quit [Ping timeout: 240 seconds]
mmohammadi9812 has joined #ocaml
narimiran has joined #ocaml
mengu has quit [Ping timeout: 258 seconds]
mmohammadi9812 has quit [Quit: Quit]
amiloradovsky has joined #ocaml
olle has joined #ocaml
smazga has quit [Ping timeout: 265 seconds]
mxns has joined #ocaml
mengu has joined #ocaml
smazga has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
vicfred has quit [Quit: Leaving]
amiloradovsky has quit [Ping timeout: 258 seconds]
Haudegen has joined #ocaml
rdivyanshu has joined #ocaml
borne has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
catt has quit [Ping timeout: 264 seconds]
Tuplanolla has joined #ocaml
maker has quit [Ping timeout: 256 seconds]
zebrag has joined #ocaml
mengu has quit [Remote host closed the connection]
andreas303 has quit [Ping timeout: 268 seconds]
andreas303 has joined #ocaml
bartholin has joined #ocaml
benc has joined #ocaml
mengu has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
steenuil has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
rdivyanshu has quit [Quit: Connection closed for inactivity]
benc has quit [Remote host closed the connection]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mfp_ has joined #ocaml
benc has joined #ocaml
decentpenguin has quit [Ping timeout: 264 seconds]
beajeanm has quit [Quit: Ping timeout (120 seconds)]
beajeanm has joined #ocaml
decentpenguin has joined #ocaml
benc has quit [Remote host closed the connection]
benc has joined #ocaml
mengu has quit []
Haudegen has quit [Quit: Bin weg.]
vicfred has joined #ocaml
mfp_ has quit [Ping timeout: 256 seconds]
steenuil_ has joined #ocaml
steenuil has quit [Ping timeout: 276 seconds]
Haudegen has joined #ocaml
motherfsck has quit [Read error: Connection reset by peer]
mfp has joined #ocaml
mxns has joined #ocaml
bartholin has quit [Quit: Leaving]
bartholin has joined #ocaml
waleee-cl has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
<companion_cube> ho
motherfsck has joined #ocaml
<d_bot> <cemerick> If I define a dune rule like `(rule (target foo.ml) ...)`, and I have a `library` stanza in the same dune file, does the latter implicitly depend upon the former since it is generating a source file?
<d_bot> <cemerick> That's what appears to be happening, but I wanted to make sure I'm not accidentally relying on an implementation detail, fortunate ordering of stanzas in the dune file, etc.
<d_bot> <anmonteiro> I think not implicitly, only if you use the module `Foo` in one of that library's modules
<d_bot> <cemerick> ah, which I do
<d_bot> <cemerick> but that would be a good thing to double-check, I guess
zebrag has quit [Quit: Konversation terminated!]
<d_bot> <anmonteiro> or if you add `foo` to `(modules ..`
zebrag has joined #ocaml
<d_bot> <anmonteiro> and I guess, for completeness, if your library has `(name foo)`
<d_bot> <cemerick> @anmonteiro well, neither of those is true
<d_bot> <cemerick> but actually, duplicating the `rule` I have now, but changing the target to `bar.ml` (which isn't referenced anywhere else) still results in `bar.ml` being generated
benc has quit []
<d_bot> <anmonteiro> maybe dune adds all modules to the library in the absence of a `(modules)` property
<d_bot> <cemerick> I'm sure I read that that's the case in the dune docs, but (at least to me) that doesn't _necessarily_ imply that the rule would be scheduled ahead of the `library`'s actions
<d_bot> <cemerick> I was expecting to have to add an explicit dependency on `foo.ml` to the library, but it seems there isn't a provision for that
<d_bot> <cemerick> so I _think_ the fortuitous scheduling I'm seeing is intended, but it's not clear to me that it's formally required given what I've specified
<d_bot> <anmonteiro> my mental model is that dune will include everything that its implementation of ocamldep finds
borne has quit [Ping timeout: 258 seconds]
<d_bot> <anmonteiro> which is why I first referred "if `Foo` appears in one of the modules"
smazga has quit [Quit: leaving]
<d_bot> <cemerick> running a clean build with `--verbose` shows that the rule's actions always precede touching anything else in the directory, or even running ocamldep
<d_bot> <cemerick> ah-ha! `(modules <modules>) specifies what modules are part of the library. By default dune will use all the .ml/.re files in the same directory as the dune file. This include ones that are present in the file system as well as ones generated by user rules. `
<d_bot> <cemerick> I hadn't read the `(modules ...)` line of documentation, since I don't specify `(modules ...)` 😛
tane has joined #ocaml
mbuf has quit [Quit: Leaving]
metreo has joined #ocaml
metreo has quit [Client Quit]
metreo has joined #ocaml
amiloradovsky has joined #ocaml
mfp_ has joined #ocaml
mfp has quit [Ping timeout: 256 seconds]
raver has quit [Remote host closed the connection]
mxns has quit [Quit: ZNC 1.8.2 - https://znc.in]
mxns has joined #ocaml
mxns has quit [Ping timeout: 264 seconds]
bartholin has quit [Quit: Leaving]
mxns has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
infinity0 has quit [Ping timeout: 276 seconds]
infinity0 has joined #ocaml
olle has quit [Ping timeout: 258 seconds]
neiluj has quit [Quit: leaving]
catt has joined #ocaml
Jesin has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
metro has joined #ocaml
metreo has quit [Ping timeout: 264 seconds]
metro is now known as metreo
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
olle has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
DanC has quit [Ping timeout: 258 seconds]
DanC has joined #ocaml
narimiran has quit [Ping timeout: 240 seconds]
mxns has quit [Ping timeout: 260 seconds]
steenuil_ has quit [Remote host closed the connection]
mxns has joined #ocaml
steenuil_ has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
mxns has joined #ocaml
steenuil_ has quit [Remote host closed the connection]
steenuil_ has joined #ocaml
tane has quit [Quit: Leaving]
olle has quit [Ping timeout: 276 seconds]
bjorkintosh has quit [Quit: Leaving]
borne has joined #ocaml
borne has quit [Ping timeout: 264 seconds]
borne has joined #ocaml
bjorkintosh has joined #ocaml
mxns has quit [Ping timeout: 246 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
Haudegen has quit [Quit: Bin weg.]