<wilfredh>
this complains 'Unbound module HasLength'
<companion_cube>
you should use a functor, not a function
<octachron>
or first-class modules; but starting with functor is a good idea
<companion_cube>
module IncLen(X: HasLength) = struct let new_my_length x = 1 + X.my_length x end
<companion_cube>
octachron: yeah, first-class modules are just going to confuse a beginner
<wilfredh>
neat, that works. Thank you :)
sagotch has quit [Quit: Leaving.]
bartholin has joined #ocaml
freyr69 has quit [Remote host closed the connection]
sagotch has joined #ocaml
dinosaure has quit [Ping timeout: 252 seconds]
sagotch has quit [Quit: Leaving.]
Jesin has quit [Quit: Leaving]
thomas_scrace has quit [Ping timeout: 245 seconds]
Jesin has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
thomas_scrace has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
wilfredh has quit [Ping timeout: 264 seconds]
thomas_scrace has quit [Ping timeout: 245 seconds]
al-damiri has joined #ocaml
thomas_scrace has joined #ocaml
AltGr has quit [Remote host closed the connection]
jao has joined #ocaml
Haudegen has joined #ocaml
jaar has quit [Quit: Leaving]
jao has quit [Ping timeout: 272 seconds]
malina has joined #ocaml
<ZirconiumX>
Can somebody explain to me how to use the Foo__X -> Foo.X change? For example, if I name a file r5900__decode.ml and then add that to the module search path, will it be imported as R5900.Decode?
<ZirconiumX>
I'm thinking about making a subdirectory called r5900, so I'm wondering if the naming has to be specific like that
Bronsa has quit [Ping timeout: 245 seconds]
jao has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
<octachron>
This requires an atlas module (`R5900`) that reexport the submodules with module aliases with `module Decode = R5900__decode`. Dune can do all the plumbing work for you and does not require you to prefix the modules by hand.
pierpal has joined #ocaml
<ZirconiumX>
octachron: Good thing I'm using Dune, then
<octachron>
then just creating a library with a dune file inside the subfolder should work
malina has quit [Remote host closed the connection]
jack5638 has quit [Ping timeout: 272 seconds]
thomas_scrace has quit [Ping timeout: 244 seconds]
jack5638 has joined #ocaml
Jesin has quit [Quit: Leaving]
jnavila has joined #ocaml
Jesin has joined #ocaml
erkin has quit [Ping timeout: 244 seconds]
malina has joined #ocaml
erkin has joined #ocaml
amcorvi has quit [Ping timeout: 264 seconds]
amcorvi has joined #ocaml
glass has joined #ocaml
theglass has quit [Ping timeout: 252 seconds]
thomas_scrace has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
amcorvi has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
pierpa has joined #ocaml
steck has joined #ocaml
thomas_scrace has quit [Ping timeout: 240 seconds]
<steck>
I have a funny issue with Lwt.async_exception_hook
<steck>
I assign to it in the main module of my application, yet the default hook seems to be called on errors
jao has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
gpietro has joined #ocaml
sh0t has quit [Ping timeout: 250 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
jnavila has quit [Remote host closed the connection]
dinosaure has joined #ocaml
dinosaure has quit [Quit: WeeChat 1.4]
dinosaure has joined #ocaml
spew has quit [Quit: running away home]
silver has quit [Ping timeout: 244 seconds]
silver has joined #ocaml
malina has quit [Remote host closed the connection]
jack5638 has quit [Ping timeout: 240 seconds]
jack5638 has joined #ocaml
pierpal has quit [Ping timeout: 240 seconds]
silver has quit [Read error: Connection reset by peer]
silver has joined #ocaml
dinosaure has quit [Ping timeout: 252 seconds]
caltelt has joined #ocaml
bartholin has quit [Remote host closed the connection]
Haudegen has quit [Remote host closed the connection]
steck has quit [Quit: Page closed]
gpietro has quit [Remote host closed the connection]
silver has quit [Read error: Connection reset by peer]
silver has joined #ocaml
silver has quit [Read error: Connection reset by peer]