kleisli has quit [Ping timeout: 265 seconds]
abliss has quit [Ping timeout: 265 seconds]
twopoint718 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abliss has joined #ocaml
ziyourenxiang has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
tane has quit [Quit: Leaving]
abliss has quit [Ping timeout: 240 seconds]
abliss has joined #ocaml
slash has quit [Ping timeout: 268 seconds]
abliss has quit [Ping timeout: 240 seconds]
abliss has joined #ocaml
stux|RC-only has quit [Quit: Aloha!]
stux|RC-only has joined #ocaml
abliss has quit [Read error: Connection reset by peer]
abliss has joined #ocaml
mfp has quit [Ping timeout: 268 seconds]
stux|RC-only has quit [Quit: Aloha!]
stux|RC-only has joined #ocaml
kjak has joined #ocaml
stux|RC-only has quit [Read error: Connection reset by peer]
abliss has quit [Read error: Connection reset by peer]
stux|RC-only has joined #ocaml
jao has quit [Ping timeout: 265 seconds]
vicfred has joined #ocaml
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 258 seconds]
abliss has joined #ocaml
abliss has quit [Client Quit]
Haudegen has quit [Ping timeout: 268 seconds]
flux has quit [Ping timeout: 248 seconds]
mahmudov has quit [Remote host closed the connection]
kleisli has joined #ocaml
gravicappa has joined #ocaml
unyu has quit [Quit: Restart.]
unyu has joined #ocaml
slice has quit [Quit: cya]
stux|RC-only has quit [Quit: Aloha!]
stux|RC-only has joined #ocaml
stux|RC-only has quit [Remote host closed the connection]
stux|RC-only has joined #ocaml
stux|RC-only has quit [Quit: Aloha!]
stux|RC-only has joined #ocaml
wingsorc has quit [Ping timeout: 248 seconds]
stux|RC-only has quit [Read error: Connection reset by peer]
stux|RC-only has joined #ocaml
narimiran has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
dborisog has joined #ocaml
unyu has quit [Quit: Reboot.]
Wojciech_K has joined #ocaml
unyu has joined #ocaml
narimiran has quit [Ping timeout: 240 seconds]
Serpent7776 has joined #ocaml
stux|RC-only has quit [Quit: Aloha!]
mpu has joined #ocaml
stux|RC-only has joined #ocaml
stux|RC-only has quit [Remote host closed the connection]
stux|RC-only has joined #ocaml
stux|RC-only has quit [Ping timeout: 265 seconds]
stux|RC-only has joined #ocaml
stux|RC-only has quit [Quit: Aloha!]
tiksin[m] has joined #ocaml
stux|RC-only has joined #ocaml
tane has joined #ocaml
webshinra has quit [Remote host closed the connection]
vicfred has quit [Quit: Leaving]
ygrek has joined #ocaml
bartholin has quit [Quit: Leaving]
slash has joined #ocaml
cgenie[m] has joined #ocaml
mfp has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
ygrek has quit [Ping timeout: 258 seconds]
jao has joined #ocaml
narimiran has joined #ocaml
dborisog_ has joined #ocaml
dborisog has quit [Ping timeout: 265 seconds]
troydm has quit [Ping timeout: 260 seconds]
kleisli has quit [Ping timeout: 268 seconds]
Haudegen has joined #ocaml
narimiran has quit [Ping timeout: 265 seconds]
ggole has joined #ocaml
<
Nikkel>
I'm creating an abstract functor that takes a module Foo as an argument
<
Nikkel>
the module type Foo matches multiple modules, which all has a type t = {...; bar : baz option; ...}
<
Nikkel>
that means that all modules : Foo also has that t contains that specific field.
<
Nikkel>
Is there any way to tell my abstract functor F, that any module of type Foo contains a t, which is guaranteed to contain a field called bar?
<
vsiles>
can you show some code ? I'm thinking around `module type` but I don't know what you have so far
<
octachron>
Not with record (since the position of fields in record is reflected in their memory representation).
<
octachron>
With objects, you could have a private object types.
<
octachron>
Otherwise, you need to encode it with a projection/update function
<
Nikkel>
What is that?
<
octachron>
I meant "let proj r = r.x and let update r x = { r with x }"
<
octachron>
i.e. a lens for the record field
<
Nikkel>
ah, right :)
sagax has quit [Write error: Connection reset by peer]
troydm has joined #ocaml
<
haesbaert>
is there a way to make a submodule use another submodule with the same parent ?
<
haesbaert>
Foo.A.x call Foo.B.lala
<
haesbaert>
as in, can Foo.A use Foo.B in any way ?
<
ggole>
If B is in scope, sure
<
haesbaert>
hmph, why did I thought I couldn't...
<
ggole>
module Foo = struct module B = struct let x = 0 end module A = struct let x = B.x end end
<
ggole>
(Not the most useful example, perhaps.)
<
haesbaert>
I basically want to have Graphics.Point Graphics.Line (which calls into Point) and stuff like that
<
ggole>
That should be OK. You might have trouble if you get cycles.
<
haesbaert>
aye, cool that should work then, thanks
silver has joined #ocaml
silver_ has joined #ocaml
silver_ has quit [Remote host closed the connection]
AnimalClatter has joined #ocaml
nicklinux has joined #ocaml
nicklinux has left #ocaml ["Leaving"]
sagax has joined #ocaml
okuu has joined #ocaml
ygrek has joined #ocaml
unyu is now known as Guest72860
Guest72860 has quit [Killed (orwell.freenode.net (Nickname regained by services))]
okuu is now known as unyu
unyu has quit [Quit: ERC (IRC client for Emacs 26.3)]
unyu has joined #ocaml
jco has joined #ocaml
Wojciech_K has quit [Remote host closed the connection]
gravicappa has joined #ocaml
AnimalClatter has quit [Remote host closed the connection]
AnimalClatter has joined #ocaml
AnimalClatter has quit [Remote host closed the connection]
AnimalClatter has joined #ocaml
twopoint718 has joined #ocaml
nullifidian has quit [Remote host closed the connection]
jnavila has joined #ocaml
AnimalClatter has quit [Ping timeout: 268 seconds]
clog has quit [Ping timeout: 245 seconds]
Serpent7776 has quit [Quit: Leaving]
jco has quit [Ping timeout: 260 seconds]
ziyourenxiang has quit [Ping timeout: 268 seconds]
jco has joined #ocaml
narimiran has joined #ocaml
Haudegen has quit [Ping timeout: 265 seconds]
ygrek has quit [Ping timeout: 260 seconds]
stux|RC has quit [Ping timeout: 252 seconds]
jco has quit [Ping timeout: 248 seconds]
stux|RC has joined #ocaml
unyu has quit [Quit: brb]
Anarchos has joined #ocaml
nullifidian has joined #ocaml
gravicappa has quit [Ping timeout: 260 seconds]
jco has joined #ocaml
clog has joined #ocaml
kleisli has joined #ocaml
kleisli_ has joined #ocaml
kleisli has quit [Ping timeout: 260 seconds]
jco has quit [Ping timeout: 245 seconds]
Serpent7776 has joined #ocaml
pepesza has joined #ocaml
mahmudov has joined #ocaml
bartholin has joined #ocaml
ggole has quit [Quit: Leaving]
mfp_ has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
dborisog_ has quit [Ping timeout: 260 seconds]
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
AnimalClatter has joined #ocaml
kark has quit [Remote host closed the connection]
gareppa has joined #ocaml
troydm has quit [Ping timeout: 265 seconds]
wingsorc has joined #ocaml
dozn__ has joined #ocaml
Jesin has quit [Quit: Leaving]
dozn_ has quit [Ping timeout: 258 seconds]
troydm has joined #ocaml
Haudegen has quit [Ping timeout: 265 seconds]
Haudegen has joined #ocaml
ygrek has joined #ocaml
nullifidian has quit [Remote host closed the connection]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
ygrek has quit [Ping timeout: 260 seconds]
nullifidian has joined #ocaml
zolk3ri has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
sugarwren has joined #ocaml
Nahra has joined #ocaml
nullifidian_ has joined #ocaml
mahmudov has quit [Read error: No route to host]
mahmudov has joined #ocaml
nullifidian has quit [Ping timeout: 265 seconds]
ygrek has joined #ocaml
sh0t has joined #ocaml
ygrek has quit [Ping timeout: 258 seconds]
stux|RC-only has quit [Remote host closed the connection]
ygrek has joined #ocaml
AnimalClatter has quit [Ping timeout: 268 seconds]
stux|RC-only has joined #ocaml
jnavila has quit [Remote host closed the connection]
stux|RC-only has quit [Ping timeout: 240 seconds]
mahmudov has quit [Read error: No route to host]
mahmudov has joined #ocaml
stux|RC-only has joined #ocaml
narimiran has quit [Quit: leaving]
stux|RC-only has quit [Quit: Aloha!]
stux|RC-only has joined #ocaml
stux|RC-only has quit [Read error: Connection reset by peer]
stux|RC-only has joined #ocaml
stux|RC-only has quit [Remote host closed the connection]
stux|RC-only has joined #ocaml
dozn_ has joined #ocaml
dozn__ has quit [Ping timeout: 260 seconds]
gareppa has quit [Quit: Leaving]
tane has quit [Quit: Leaving]
ygrek has quit [Ping timeout: 258 seconds]
Nahra has quit [Quit: leaving]
sh0t has quit [Quit: Leaving]
mahmudov has quit [Read error: Connection reset by peer]
twopoint718 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ziyourenxiang has joined #ocaml
Serpent7776 has quit [Quit: leaving]
mahmudov has joined #ocaml
mahmudov has quit [Remote host closed the connection]
mahmudov has joined #ocaml
mahmudov has quit [Remote host closed the connection]
mahmudov has joined #ocaml