adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
spew has quit [Quit: Connection closed for inactivity]
ziyourenxiang has joined #ocaml
unyu has joined #ocaml
ygrek__ has joined #ocaml
mfp has quit [Ping timeout: 252 seconds]
Nahra has quit [Ping timeout: 276 seconds]
vesper11 has quit [Quit: ZNC 1.7.4 - https://znc.in]
rzmt has quit [Ping timeout: 240 seconds]
vesper11 has joined #ocaml
sagax has quit [Ping timeout: 268 seconds]
rzmt has joined #ocaml
igitoor has quit [Read error: Connection reset by peer]
igitoor_ has joined #ocaml
igitoor_ has quit [Changing host]
igitoor_ has joined #ocaml
igitoor_ is now known as igitoor
tormen has joined #ocaml
williewillus has joined #ocaml
tormen_ has quit [Ping timeout: 265 seconds]
<williewillus> hi all, trying to get into Lwt (for AoC again, day 7). things are going good so far, except for some reason the lwt_unix modules are not being recognized. I've got conf-libev and lwt installed from opam, and `lwt` listed in dune libraries. what am I missing?
<williewillus> thanks!
<companion_cube> you also need lwt.unix
<companion_cube> (it's optional, since you can also use lwt on non-unix platforms such as the browser)
<williewillus> oh, how do i install that? opam install lwt.unix says package not found
<companion_cube> it should already be installed
<companion_cube> the `.` indicates it's a subpackage of lwt
<oni-on-ion> are you still doing windows? btw williewillus i seen your reddit post but did not click further
<williewillus> ah okay, thanks! fixed by adding lwt.unix to `dune`
<williewillus> oni-on-ion I've always been using linux
<williewillus> that reddit post was caused by breakages in janestreet Base 0.13
<oni-on-ion> yea i remember, the equal sign and the 'int' type. my suggestion was that the type was inferred earlier on; sometimes those messages are not so clear (or timely)
sagax has joined #ocaml
vicfred has quit [Quit: Leaving]
oni-on-ion has quit [Ping timeout: 245 seconds]
oni_on_ion has joined #ocaml
williewillus has quit [Remote host closed the connection]
narimiran has joined #ocaml
oni_on_ion is now known as oni-on-ion
keep_learning has joined #ocaml
dborisog has joined #ocaml
keep_learning has quit [Client Quit]
madroach has joined #ocaml
keep_learning has joined #ocaml
keep_learning has quit [Client Quit]
<xvilka> strange, something is fishy with ocaml-zlib and dune
<xvilka> if I open Zlib with utop it works fine: #require "zlib";; Zlib.create_inflate ~window_bits:0 ();; indeed creates the inflate instance
<xvilka> but if I have the code like "let inflate = Zlib.create_inflate ~window_bits:0 () in ..." in test.ml with Dune it fails
<xvilka> it says me "Error: unbound value Zlib.create_inflate"
<xvilka> wtf
<xvilka> at the same time merlin doesn't show any error, only "dune build" step does
<xvilka> and if I call "dune build --verbose" it shows the zlib in the `-I` flags
<xvilka> I am not sure it even works - seems nobody uses it https://opam.ocaml.org/packages/zlib
<xvilka> aww, crap, I will just copy the files
<xvilka> I moved everything and renamed in zlib2, and it magically works
jao has quit [Ping timeout: 265 seconds]
Serpent7776 has joined #ocaml
Haudegen has joined #ocaml
dborisog has quit [Remote host closed the connection]
bartholin has quit [Remote host closed the connection]
<Nikkel> Is it possible make Js_of_ocaml listen to when an Html.R element is updated?
ygrek__ has quit [Ping timeout: 240 seconds]
Nahra has joined #ocaml
Nahra has joined #ocaml
Nahra has quit [Changing host]
<Nikkel> I'm trying to reuse some code, but I think I'm triggering the code in create_picker and destroy_picker before I actually want to https://pastebin.com/fEtLRwwC
<Nikkel> How do I make it so that they aren't actually evaluated until I run the functions? Do I need callbacks?
Serpent7776 has quit [Remote host closed the connection]
Serpent7776 has joined #ocaml
free_beard has joined #ocaml
dborisog has joined #ocaml
mfp has joined #ocaml
free_beard has quit [Ping timeout: 276 seconds]
free_beard has joined #ocaml
slice has quit [Ping timeout: 268 seconds]
ggole has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 268 seconds]
aubian has quit [Ping timeout: 265 seconds]
aubian has joined #ocaml
mbuf has joined #ocaml
<mbuf> I have opam 2.0.5 installed on Parabola GNU/Linux-libre, and have completed "opam install stog". When running "opam list", it does mention that stog is installed. But, when I try to run the command "stog", it says command not found. I have done "eval `opam config env`" already.
<mbuf> "opam switch" tells me that "4.06.1 ocaml-base-compiler-4.06.1" is the current one. What could I be missing?
tobiasBo1 has quit [Ping timeout: 276 seconds]
Fardale has quit [Ping timeout: 276 seconds]
<Leonidas> mbuf: can you find `stog` in your `_opam/bin`?
<mbuf> Leonidas, it is not there in ~/.opam/4.06.1/bin/
<Leonidas> mbuf: can you paste `opam info stog`?
<mbuf> Leonidas, sure, https://pastebin.com/bSak67FW
tobiasBo1 has joined #ocaml
Fardale has joined #ocaml
<Leonidas> hmm, looks all good
* Leonidas doesn't have a switch that's old enough to install `stog` :(
<mbuf> Leonidas, any other suggestions?
<Leonidas> mbuf: the output looks okay, that's about how it is supposed to look like when it is installed
<mbuf> Leonidas, why does opam say stog is installed, but, the binary is not in ~/.opam/4.06.1/bin?
<Leonidas> don't know, maybe the build system messed up
<def`> mbuf: for some reason, the opam package of stog doesn't install the binary
<mbuf> $ find . -name stog in ~/.opam, only reveals "repo/default/packages/stog", "4.06.1/lib/stog" and "4.06.1/share/stog"
<def`> the description contains install-lib and install-share bot neither install nor install-bin, so that seems on purpose
<mbuf> def`, ohh!
<mbuf> framagit.org does not resolve either
<def`> it works here :p
<Leonidas> works here too, although slow
<mbuf> Can you check the Git repo, and let me know the author's e-mail address?
<mbuf> def`, Leonidas thanks! Will wait for a reply from the author
<Leonidas> I think the fix would be to add `install-bin` in the opam file on opam-repository
<mbuf> Leonidas, the last update was on July 6, 2018
<mbuf> Leonidas, thanks!
<Leonidas> it is probably also broken in older versions, but let's see if this even fixes your particular issue.
<mbuf> I have sent an e-mail to the author. Will wait for a reply.
<mbuf> Later!
mbuf has quit [Quit: Leaving]
Haudegen has quit [Quit: Bin weg.]
mfp has quit [Ping timeout: 240 seconds]
mfp has joined #ocaml
spew has joined #ocaml
Haudegen has joined #ocaml
Serpent7776 has quit [Quit: Leaving]
smazga has joined #ocaml
free_beard has quit [Remote host closed the connection]
gareppa has joined #ocaml
gareppa has quit [Quit: Leaving]
ziyourenxiang has quit [Ping timeout: 265 seconds]
Haudegen has quit [Quit: Bin weg.]
jao has joined #ocaml
Haudegen has joined #ocaml
ggole has quit [Quit: Leaving]
dborisog has quit [Ping timeout: 268 seconds]
gareppa has joined #ocaml
oni-on-ion has quit [Ping timeout: 250 seconds]
zolk3ri has joined #ocaml
govind has joined #ocaml
gareppa has quit [Quit: Leaving]
govind has quit [Client Quit]
govind has joined #ocaml
govind has quit [Client Quit]
oni-on-ion has joined #ocaml
mononote has quit [Quit: Gateway shutdown]
mononote has joined #ocaml
brettgilio has joined #ocaml
mononote has left #ocaml [#ocaml]
mononote has joined #ocaml
gravicappa has quit [Ping timeout: 246 seconds]
kakadu_ has joined #ocaml
brettgilio_ has joined #ocaml
brettgilio has quit [Ping timeout: 245 seconds]
bartholin has joined #ocaml
gravicappa has joined #ocaml
kleisli has quit [Ping timeout: 240 seconds]
zolk3ri has quit [Remote host closed the connection]
kleisli has joined #ocaml
jnavila has joined #ocaml
jnavila has quit [Client Quit]
jnavila has joined #ocaml
iovec has joined #ocaml
iovec has quit [Client Quit]
narimiran has quit [Ping timeout: 265 seconds]
zolk3ri has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
iovec has joined #ocaml
rotucer has joined #ocaml
companion_cube has quit [Quit: WeeChat 2.3]
ocabot has quit [Remote host closed the connection]
ocabot has joined #ocaml
companion_cube has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
Nahra has quit [Ping timeout: 240 seconds]
Nahra_ has joined #ocaml
ziyourenxiang has joined #ocaml
brettgilio_ has quit [Remote host closed the connection]
brettgilio has joined #ocaml
dinosaure has quit [Quit: WeeChat 2.3]
<dmbaturin> Can I use a local git repo as an opam repository?
<Armael> yes.
<dmbaturin> Armael: What's the URL format for that?
<Armael> idk, same as for packages?
<Armael> I'd guess git+file:///foo/bar
<Armael> or maybe just git+/foo/bar
<dmbaturin> git+file:/// worked, thanks!
<dmbaturin> I'm going to try extending opam-cross-windows to the point where it's practical at least for me. :)
rotucer has quit [Ping timeout: 252 seconds]
rotucer has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
Haudegen has quit [Ping timeout: 265 seconds]