nahra has quit [Remote host closed the connection]
AnAverageHuman has quit [Ping timeout: 256 seconds]
AnAverageHuman has joined #ocaml
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #ocaml
assemblyman has joined #ocaml
omarramo has quit [Ping timeout: 240 seconds]
omarramo has joined #ocaml
omarramo has quit [Ping timeout: 252 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jao has quit [Ping timeout: 255 seconds]
kvda has joined #ocaml
kvda has quit [Client Quit]
kvda has joined #ocaml
silver has quit [Read error: Connection reset by peer]
Jesin has quit [Quit: Leaving]
ygrek__ has joined #ocaml
Jesin has joined #ocaml
bungoman has joined #ocaml
bungoman has quit [Read error: Connection reset by peer]
zmt00 has joined #ocaml
klntsky has quit [Remote host closed the connection]
klntsky has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
ygrek__ has quit [Remote host closed the connection]
ygrek_ has joined #ocaml
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 245 seconds]
gravicappa has joined #ocaml
marvin2 has quit [Ping timeout: 245 seconds]
marvin2 has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
philtor has quit [Read error: No route to host]
ygrek_ has quit [Ping timeout: 240 seconds]
spew has joined #ocaml
groovy2shoes has quit [Quit: moritura te salutat]
troydm has joined #ocaml
govg has quit [Ping timeout: 245 seconds]
zmt00 has quit [Quit: Leaving]
zmt00 has joined #ocaml
assemblyman has quit [Quit: ™]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JimmyRcom has quit [Ping timeout: 250 seconds]
cross_ has quit [Quit: Lost terminal]
spew has quit [Ping timeout: 268 seconds]
ftlight has quit [Ping timeout: 245 seconds]
sagotch has joined #ocaml
sagotch has quit [Read error: Connection reset by peer]
ftlight has joined #ocaml
Ganwell has quit [Ping timeout: 252 seconds]
Arul has joined #ocaml
Arul has left #ocaml [#ocaml]
Arul has joined #ocaml
orbifx has joined #ocaml
kvda has joined #ocaml
Haudegen has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Arul has quit [Ping timeout: 256 seconds]
orbifx has quit [Ping timeout: 245 seconds]
ollehar has joined #ocaml
Serpent7776 has joined #ocaml
kvda has joined #ocaml
gravicappa has quit [Ping timeout: 255 seconds]
FlorianS[m] has joined #ocaml
Yalle[m] has joined #ocaml
freyr69 has joined #ocaml
FlorianS[m] has left #ocaml [#ocaml]
dhil has joined #ocaml
andy_c has left #ocaml [#ocaml]
amiloradovsky has joined #ocaml
Yalle[m] has left #ocaml [#ocaml]
mfp has joined #ocaml
Olivier[m]1 has left #ocaml [#ocaml]
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ocaml
brab[m] has joined #ocaml
gravicappa has joined #ocaml
Haudegen has quit [Remote host closed the connection]
gareppa has joined #ocaml
wilfredh has joined #ocaml
gareppa has quit [Remote host closed the connection]
dhil has quit [Ping timeout: 245 seconds]
dhil has joined #ocaml
ggole has joined #ocaml
asymptotically has joined #ocaml
mal`` has quit [Quit: Leaving]
ygrek_ has joined #ocaml
mal`` has joined #ocaml
otini has joined #ocaml
otini_test has joined #ocaml
<freyr69>
In Cohttp do I need to call drain_body manually on any response?
Haudegen has joined #ocaml
otini_test has left #ocaml [#ocaml]
otini_test has joined #ocaml
otini_test has left #ocaml [#ocaml]
zolk3ri has joined #ocaml
kakadu has joined #ocaml
kakadu_ has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 250 seconds]
q9929t has joined #ocaml
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
jaar has joined #ocaml
q9929t has quit [Remote host closed the connection]
cantstanya has quit [Remote host closed the connection]
q9929t has joined #ocaml
cantstanya has joined #ocaml
SpiceGuid has joined #ocaml
dhil has joined #ocaml
spew has joined #ocaml
q9929t has quit [Ping timeout: 244 seconds]
FreeBirdLjj has joined #ocaml
dhil has quit [Ping timeout: 245 seconds]
SpiceGuid has quit [Quit: ChatZilla 0.9.93 [SeaMonkey 2.49.4/20180713174829]]
cross has joined #ocaml
jao has joined #ocaml
silver has joined #ocaml
q9929t has joined #ocaml
q9929t has quit [Client Quit]
kini has quit [Quit: No Ping reply in 210 seconds.]
nikivi has quit [Read error: Connection reset by peer]
nikivi has joined #ocaml
freyr69 has quit [Remote host closed the connection]
kini has joined #ocaml
amiloradovsky has quit [Ping timeout: 255 seconds]
assemblyman has joined #ocaml
ollehar has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
Haudegen has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #ocaml
iAmerikan has joined #ocaml
ygrek_ has quit [Remote host closed the connection]
ygrek_ has joined #ocaml
<iAmerikan>
Anyone have a second to look at this https://pastebin.com/FNC2PMQP ? Brand new to ocaml, was trying to extend the Cohttp client example. I understand that Lwt is a promise implementation, I guess what I'm not sure of is how to run getItem on the item returned by the `body` expression
<iAmerikan>
in js-land i'd be asking about how to `body().then(getItem)`
<otini>
This is an uninformed guess as I never used Lwt, but as I understand it you must call `Lwt_main.run` once in your program, so here you would need to make the printing of `body` and `item` both part of the same promise, and then run that promise
<otini>
again, just a guess
ygrek_ has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
ygrek_ has joined #ocaml
ravenousmoose has joined #ocaml
jnavila has joined #ocaml
iAmerikan has joined #ocaml
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iAmerikan has quit [Ping timeout: 245 seconds]
sagax has quit [Remote host closed the connection]
omarramo has joined #ocaml
iAmerikan has joined #ocaml
ggole has quit [Quit: Leaving]
gikiam has joined #ocaml
omarramo has quit [Ping timeout: 252 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
<bartholin>
I realized that exceptions more or less ignore the encapsulation provided by module signatures https://p.teknik.io/XrhU8
FreeBirdLjj has quit [Ping timeout: 246 seconds]
jnavila has quit [Ping timeout: 258 seconds]
<Leonidas>
iAmerikan: that's what >>= is good for: body () >>= (fun body -> return @@ getItem body) or body () >>| getItem
gravicappa has quit [Ping timeout: 245 seconds]
ravenousmoose has joined #ocaml
kakadu_ has joined #ocaml
<Leonidas>
iAmerikan: give me a bit to set up my env…
dhil has quit [Ping timeout: 245 seconds]
iAmerikan has quit [Ping timeout: 252 seconds]
bartholin has quit [Remote host closed the connection]
<Leonidas>
I also made the IO nonblocking, otherwise you see weird effects where things happen in unexpected order
<Leonidas>
iAmerikan: the issue is that in your code you created a `string Lwt.t` (a promise) and then pretended for it to be the resolved value and then tried to call getItem on it, which of course doesn't work as expected.
metreo has left #ocaml [#ocaml]
<Leonidas>
otini is completely right in the assumption that at some point you need to invoke the Lwt main loop to evaluate all your accumulated promises
<iAmerikan>
Thank you for your help Leonidas, your example makes sense (for the most part, but I'll dig in to it) to me. I appreciate your help
groovy2shoes has joined #ocaml
<iAmerikan>
Same to you otini, I'm not on an IRC bouncer right now, so I may have lost some messages between connections :|
jack5638 has quit [Ping timeout: 272 seconds]
<iAmerikan>
Another random question, does the community generally use ocamlbuild for project building / dependency linking?
<Armael>
people use dune nowadays
<iAmerikan>
thanks Armael I'll check dune out
jnavila has joined #ocaml
jack5638 has joined #ocaml
<Leonidas>
dune has far surpassed ocamlbuild even in its post popular days
<otini>
iAmerikan: I figured that out after writing an answer, my bad
jnavila has quit [Ping timeout: 246 seconds]
<iAmerikan>
tbh i've struggled w/ different tutorials using `ocamlfind`, `ocamlc` and `ocamlbuild` all w/ various flags, but i haven't taken the time to really dig into the tooling, and i should
ygrek_ has quit [Remote host closed the connection]
ygrek_ has joined #ocaml
<otini>
I've heard reports that it's quite hard to figure out what tooling to use at the beginning
<Leonidas>
yeah, especially when using old tutorials :(
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaar has quit [Quit: Leaving]
jnavila has joined #ocaml
assemblyman has quit [Quit: ™]
Haudegen has quit [Read error: Connection reset by peer]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhil has quit [Ping timeout: 252 seconds]
iAmerika1 has joined #ocaml
iAmerikan has quit [Ping timeout: 245 seconds]
iAmerika1 is now known as iAmerikan
ravenousmoose has joined #ocaml
Haudegen has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
iAmerikan has quit [Quit: WeeChat 2.1]
iAmerikan has joined #ocaml
Serpent7776 has quit [Quit: leaving]
jnavila has quit [Remote host closed the connection]
shakalaka has joined #ocaml
Fare has joined #ocaml
<Fare>
does anyone use ocamlformat (or ocp-indent) in their .git/hooks/pre-commit
<Leonidas>
iAmerikan: fwiw, I updated the gist to include the dune file I used to compile the code
<iAmerikan>
Leonidas: sweet, thanks! I've been playing with dune and it's been so much easier
<zozozo>
Fare: at work, we have a project that uses ocp-indent in the CI script
<Fare>
zozozo: can you share the pre-commit hook? Mine ends up having nasty side-effects wrt files being included or not in the commit.
<zozozo>
Note it might use other scripts in the same directory
ygrek_ has quit [Remote host closed the connection]
ygrek has joined #ocaml
<Fare>
thanks
<zozozo>
^^
<Fare>
if someone has the same thing for ocamlformat, I'm interested, though I suspect I can adapt it
<zozozo>
I think dune has built-in support for ocamlformat , as well as automatically promoting files that need changes, so you can probably use that ?
<zozozo>
Also, note that one pitfall of the scripts I linked is that it checks the current contents of the files rather than the committed changes
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hdon has joined #ocaml
<hdon>
hi all :) i know there's a bucklescript/reasonml discord. is there an IRC channel?
<companion_cube>
not that I know of
<hdon>
thanks companion_cube
navaja has joined #ocaml
asymptotically has quit [Quit: Leaving]
<tizoc>
I'm a bit lost here, is it possible to use ppx_deriving with ocaml-migrate-parsetree? I checked all the ppx_deriving_* packages in opam and they all still use cppo
kvda has joined #ocaml
kakadu_ has quit [Ping timeout: 245 seconds]
ygrek has quit [Ping timeout: 240 seconds]
<companion_cube>
hu, weird indeed
assemblyman has joined #ocaml
navaja has quit [Ping timeout: 245 seconds]
Haudegen has quit [Remote host closed the connection]