rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
theblatte has quit [Ping timeout: 244 seconds]
theblatte has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
bibi__ has quit [Ping timeout: 248 seconds]
bibi__ has joined #ocaml
kurfen has quit [Ping timeout: 252 seconds]
ygrek has joined #ocaml
<discocaml>
<astreamingcomesacrossthesky> What am I missing about `ocaml -I`? I have compiled ocaml libs in a directory I'm passing as the arg to -I but it doesn't work. However, if I add the extra path segment pointing to the directory containing the .cmi files, it does. Am I doing something stupid or does it only look at the top level of the specified directory?
ygrek has quit [Remote host closed the connection]
<discocaml>
<astreamingcomesacrossthesky> What am I missing about `ocaml -I`? I have a directory containing directories of compiled ocaml libs. I pass this parent dir as the arg to -I but it doesn't work. However, if I add the extra path segment pointing to the directory containing the .cmi files themselves, it does. Am I doing something stupid or does it only look at the top level of the specified directory?
<discocaml>
<chrisarmstrong> I don't think it works recursively; I believe you need to pass in each directory containing `.cmi` files as a parameter
<discocaml>
<astreamingcomesacrossthesky> Good to know. I'm using a non-opam install of OCaml and I'm trying to wrap my head around how libraries are resolved. I suppose I can just add all the desired dirs to .ocamlinit so I don't have to specify them each time the top level is started
<discocaml>
<chrisarmstrong> If you insist on not using opam, at least use `ocamlfind` to locate your libraries when calling the top-level
mbuf has joined #ocaml
kurfen has joined #ocaml
Serpent7776 has joined #ocaml
<discocaml>
<inline_93060_96044> ocaml -I just works for flat folder structure, i just tried it on msys2 on windows
Inline has joined #ocaml
bartholin has joined #ocaml
Haudegen has joined #ocaml
agentcasey has quit [Ping timeout: 260 seconds]
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #ocaml
bartholin has quit [Quit: Leaving]
Inline has quit [Read error: Connection reset by peer]
Haudegen has quit [Quit: Bin weg.]
Inline has joined #ocaml
<discocaml>
<pierrels> Is it possible to use `Alcotest.skip ()` inside of a QCheck test to make it skip the overlying Alcotest test ? Something like :
<discocaml>
<pierrels> ```ocaml
<discocaml>
<pierrels> let qcheck_test = QCheck.Test.make ~count:100 ~name:"test" QCheck.(int) (fun k -> Alcotest.skip ()) in
<discocaml>
<pierrels> let alcotest_test = QCheck_alcotest.to_alcotest qcheck_test in
<discocaml>
<pierrels> I would like it to mark this test as skipped, instead it is marked as a failed test because it raises the Skip exception from Alcotest core.
alexherbo2 has joined #ocaml
mbuf has quit [Read error: Connection reset by peer]
olle has joined #ocaml
mange has quit [Remote host closed the connection]
domq has joined #ocaml
domq has quit [Quit: domq]
domq has joined #ocaml
Anarchos has joined #ocaml
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #ocaml
ygrek has joined #ocaml
alexherbo2 has quit [Ping timeout: 240 seconds]
trillion_exabyte has quit [Ping timeout: 248 seconds]
trillion_exabyte has joined #ocaml
<discocaml>
<drupyog> Credits to Sebastien Micheland for the idea. Special dédicace to @companion_cube , Fold and simple filters as let-operators:
<discocaml>
<drupyog>
<discocaml>
<drupyog> ```ocaml
<discocaml>
<drupyog> let (let<@) (lst, acc) expr = List.fold_left (fun a b -> expr (b,a)) acc lst