companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
szkl has joined #ocaml
<d_bot> <darrenldl> oh hey my uni : v
vicfred has quit [Quit: Leaving]
kurfen has quit [Ping timeout: 240 seconds]
gereedy has quit [Ping timeout: 240 seconds]
kurfen has joined #ocaml
chrisz has quit [Ping timeout: 248 seconds]
chrisz has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
waleee has quit [Ping timeout: 252 seconds]
terrorjack has joined #ocaml
Corbin has quit [Quit: Corbin]
Corbin has joined #ocaml
<greenbagels> is there a straightforward way to generate documentation for opam packages
<greenbagels> https://github.com/vbmithr/ocaml-websocket seemed to have documentation in the past, but not anymore
<greenbagels> but the source files seem to still have ocamldoc annotations?
Haudegen has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
jonasbits has quit [Ping timeout: 240 seconds]
jonasbits has joined #ocaml
nfc has quit [*.net *.split]
ado has quit [*.net *.split]
jackhill has quit [*.net *.split]
Chouhartem has quit [*.net *.split]
jackhill has joined #ocaml
ado has joined #ocaml
nfc has joined #ocaml
Chouhartem has joined #ocaml
daimrod2 has quit [*.net *.split]
notnotdan has quit [*.net *.split]
pgiarrusso has quit [*.net *.split]
welterde has quit [*.net *.split]
Geekingfrog has quit [*.net *.split]
pgiarrusso has joined #ocaml
daimrod2 has joined #ocaml
notnotdan has joined #ocaml
welterde has joined #ocaml
Geekingfrog has joined #ocaml
mro has joined #ocaml
<sim642> Looks like it still publishes the docs here, but just doesn't link to it anywhere (?): http://vbmithr.github.io/ocaml-websocket/doc/
<sim642> Anyway, it's a dune project do `dune build @doc` would generate it
<sim642> Or more generally you can see the with-doc commands in the opam file
<sim642> You can even opam install --with-doc I think, but I'm not sure where that goes
<sim642> And the new ocaml.org site also builds documentation for all opam packages, so you don't even have to hunt for individual github pages deployments: https://ocaml.org/p/websocket/2.15/doc/index.html
<greenbagels> sim642: oh that is very nice to know! thanks
gravicappa has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
kakadu has joined #ocaml
wingsorc has quit [Ping timeout: 248 seconds]
olle has joined #ocaml
mbuf has joined #ocaml
bartholin has joined #ocaml
namkeleser has joined #ocaml
mro has quit [Read error: Connection reset by peer]
mro_ has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
DNH has joined #ocaml
mro_ has quit [Read error: Connection reset by peer]
bobo has joined #ocaml
spip has quit [Ping timeout: 260 seconds]
dhil has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
Sankalp has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
mro has joined #ocaml
namkeleser has quit [Quit: Client closed]
Sankalp has joined #ocaml
mro has quit [Quit: Leaving...]
gereedy has joined #ocaml
<d_bot> <denis631> Hi everybody,
<d_bot> <denis631> Crosspost from beginners channel 😅
<d_bot> <denis631> I want to bind some C library functions to OCaml functions and call them from OCaml.
<d_bot> <denis631> However, I have some difficulties with types. Does anybody know how I can fix this?
<d_bot> <denis631>
<d_bot> <denis631> Here is my sample code: https://pastebin.com/MvEyymhF
<d_bot> <denis631>
<d_bot> <denis631> Here is the error message:
<d_bot> <denis631> ```
<d_bot> <denis631> wired_tiger.ml 63 4 error This expression has type
<d_bot> <denis631> connection_t structure Ctypes_static.ptr =
<d_bot> <denis631> (connection_t structure, [ `C ]) pointer
<d_bot> <denis631> but an expression was expected of type
<d_bot> <denis631> connection_t ptr = (connection_t, [ `C ]) pointer
<d_bot> <denis631> Type connection_t structure = (connection_t, [ `Struct ]) structured
<d_bot> <denis631> is not compatible with type connection_t (ocaml-merlin)
<d_bot> <denis631>
<d_bot> <denis631> wired_tiger.ml 63 7 error This expression has type
<d_bot> <denis631> session_t structure ptr = (session_t structure, [ `C ]) pointer
<d_bot> <denis631> but an expression was expected of type
<d_bot> <denis631> session_t ptr = (session_t, [ `C ]) pointer
<d_bot> <denis631> Type session_t structure = (session_t, [ `Struct ]) structured
<d_bot> <denis631> is not compatible with type session_t (ocaml-merlin)
<d_bot> <denis631> ```
<d_bot> <denis631>
<d_bot> <denis631> I made it work by adjusting the `type t` to be `type t = ((C_Bindings.WiredTiger.connection_t structure, [ C ]) pointer) * ((C_Bindings.WiredTiger.session_t structure, [ C ]) pointer)`, but it feels like a workaround to me
gravicappa has quit [Ping timeout: 240 seconds]
Serpent7776 has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
Serpent7776 has joined #ocaml
vicfred has joined #ocaml
Anarchos has joined #ocaml
waleee has joined #ocaml
hyphen has quit [Ping timeout: 240 seconds]
hyphen has joined #ocaml
vicfred has quit [Quit: Leaving]
hyphen has quit [Ping timeout: 248 seconds]
hyphen has joined #ocaml
bartholin has quit [Quit: Leaving]
aspe has joined #ocaml
aspe has quit [Remote host closed the connection]
aspe has joined #ocaml
aspe has quit [Client Quit]
vicfred has joined #ocaml
hyphen has quit [Ping timeout: 272 seconds]
gwizon has joined #ocaml
gwizon has quit [Client Quit]
DNH has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hyphen has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
gereedy has quit [Quit: gereedy]
hyphen has quit [Read error: Connection reset by peer]
<d_bot> <Patate> Hi @denis631 , did you figured it out?
gravicappa has joined #ocaml
DNH has joined #ocaml
hyphen has joined #ocaml
chrisz has quit [Ping timeout: 252 seconds]
chrisz has joined #ocaml
hyphen has quit [Ping timeout: 272 seconds]
<d_bot> <denis631> Now, I didn't @Patate
<d_bot> <denis631> Just basically the "workaround" that I posted
hyphen has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ocaml
Haudegen has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Tuplanolla has joined #ocaml
mbuf has quit [Quit: Leaving]
kaph has quit [Ping timeout: 240 seconds]
hyphen has quit [Ping timeout: 248 seconds]
hyphen has joined #ocaml
<amk> should it be expected that when i `opam build` after adding a library to a dune file that it automatically downloads it? as it stands i have to manually opam install ... for libraries to become available
<d_bot> <NULL> opam build should only work locally and only report missing libraries, not call opam directly
<d_bot> <NULL> Not everyone uses opam
hyphen has quit [Ping timeout: 272 seconds]
<amk> ah okay, i wasnt sure what the expected work flow was, thanks
hyphen has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
<sim642> TIL `opam build` was a thing at some point
<d_bot> <NULL> Oh wait, I confused opam and dune (for the first part only)
<d_bot> <NULL> So while the sentence is weird, I think it still stands (but I'm way less confident than if it were with dune)
hyphen has quit [Ping timeout: 276 seconds]
namkeleser has joined #ocaml
hyphen has joined #ocaml
aspe has joined #ocaml
olle has quit [Ping timeout: 272 seconds]
mro has joined #ocaml
rgrinberg has joined #ocaml
namkeleser has quit [Quit: Client closed]
mro has quit [Ping timeout: 272 seconds]
olle has joined #ocaml
hyphen has quit [Ping timeout: 272 seconds]
hyphen has joined #ocaml
hyphen has quit [Ping timeout: 260 seconds]
hyphen has joined #ocaml
xgqt has quit [Ping timeout: 260 seconds]
xgqt has joined #ocaml
hyphen has quit [Ping timeout: 240 seconds]
hyphen has joined #ocaml
szkl has joined #ocaml
gravicappa has quit [Ping timeout: 260 seconds]
tiferrei has quit [Ping timeout: 240 seconds]
tiferrei has joined #ocaml
aspe has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
wingsorc has joined #ocaml
olle has quit [Remote host closed the connection]
greaser|q has joined #ocaml
greaser|q has quit [Changing host]
greaser|q has joined #ocaml
greaser|q is now known as GreaseMonkey
wingsorc__ has joined #ocaml
wingsorc__ has quit [Remote host closed the connection]
DNH has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
rgrinberg has quit [Read error: Connection reset by peer]
olle has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
bobo has quit [Ping timeout: 252 seconds]
zebrag has joined #ocaml
dhil has quit [Ping timeout: 248 seconds]
spip has joined #ocaml
tiferrei has quit [Ping timeout: 240 seconds]
tiferrei has joined #ocaml
gereedy has joined #ocaml
olle has quit [Ping timeout: 246 seconds]
rgrinberg has joined #ocaml