kvda has joined #ocaml
sillyotter has joined #ocaml
sillyotter has quit [Client Quit]
ziyourenxiang has joined #ocaml
djellemah has joined #ocaml
sonologico has quit [Remote host closed the connection]
AtumT_ has quit [Quit: AtumT_]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seliopou has joined #ocaml
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
niklasl has joined #ocaml
seliopou has quit [Ping timeout: 245 seconds]
seliopou has joined #ocaml
kvda has joined #ocaml
djellemah has quit [Quit: Leaving]
mfp has quit [Ping timeout: 258 seconds]
cropcircle has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gravicappa has joined #ocaml
caltelt_ has joined #ocaml
caltelt_ has quit [Remote host closed the connection]
caltelt_ has joined #ocaml
kvda has joined #ocaml
Guest65111 has quit [Ping timeout: 268 seconds]
Redfoxmoon has quit [Changing host]
Redfoxmoon has joined #ocaml
manWithNoName has joined #ocaml
<
manWithNoName>
çhi all
<
manWithNoName>
hi*
manWithNoName has quit [Quit: leaving]
Jesin has quit [Ping timeout: 258 seconds]
Jesin has joined #ocaml
nullifidian has joined #ocaml
lelf has joined #ocaml
kapilp has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
andreas303 has quit [Read error: Connection reset by peer]
andreas303 has joined #ocaml
barockobamo has joined #ocaml
cropcircle has quit [Read error: Connection reset by peer]
oni-on-ion has quit [Remote host closed the connection]
JimmyRcom has quit [Ping timeout: 248 seconds]
zolk3ri has joined #ocaml
oni-on-ion has joined #ocaml
Haudegen has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
kvda has quit [Client Quit]
brun has joined #ocaml
ggole has joined #ocaml
brun has quit [Remote host closed the connection]
_whitelogger has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
zolk3ri has joined #ocaml
mfp has joined #ocaml
Haudegen has quit [Remote host closed the connection]
Jesin has quit [Ping timeout: 246 seconds]
jbrown has quit [Remote host closed the connection]
lelf has quit [Ping timeout: 258 seconds]
unyu has quit [Quit: Restart.]
okuu has quit [Remote host closed the connection]
unyu has joined #ocaml
Birdface has joined #ocaml
<
reynir>
I wanted to install a package from opam, and opam wants to recompile ocaml for some reason
<
flux[m]>
which package was that?
<
reynir>
ocp-index, I think
<
reynir>
It's been a while since I did an opam update, maybe that's why
<
flux[m]>
did it update ocaml as well?
<
flux[m]>
or maybe some dependency of ocaml updated
jao has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
<
reynir>
I think maybe ocaml-config was a new package
averell has quit [Quit: .]
Birdface has quit [Ping timeout: 246 seconds]
Birdface has joined #ocaml
syb has joined #ocaml
syb has quit [Remote host closed the connection]
caltelt_ has quit [Ping timeout: 258 seconds]
<
wilfredh>
Option.map has this type: ('a -> 'b) -> 'a option -> 'b option
<
wilfredh>
however, I have a function ('a -> 'b option) that I'd like to apply to a `'a option`
<
wilfredh>
is there a built-in function in the stdlib or the Jane Street libraries for this?
<
vsiles>
wilfredh: bind ?
<
vsiles>
- : 'a option -> f:('a -> 'b option) -> 'b option = <fun>
<
theblatte>
bonus: go full monad in Base with `let open Option.Monad_infix in Some 32 >>= fun n -> n * 52 >>| print_int`
* vsiles
never learned what was >> >>= >>|
<
vsiles>
theblatte: >>= is map and >>| bind ?
<
reynir>
Other way around
<
vsiles>
theblatte: shouldn't it be Some (n * 52) ?
<
rks`>
obviously what you want is "let* n = Some 32 in let+ x = n * 52 in print_int x"
<
vsiles>
that's kind of dirty
<
rks`>
you're dirty
spew has joined #ocaml
<
wilfredh>
vsiles: thanks again :)
jbrown has joined #ocaml
ShalokShalom has quit [Ping timeout: 244 seconds]
oni-on-ion has quit [Remote host closed the connection]
averell has joined #ocaml
q9929t has joined #ocaml
JimmyRcom has joined #ocaml
Birdface has quit [Ping timeout: 258 seconds]
zapashcanon_ has joined #ocaml
Mayoi has joined #ocaml
diginet_ has joined #ocaml
psacrifi- has joined #ocaml
hannes` has joined #ocaml
ziyourenxiang_ has joined #ocaml
Khady_ has joined #ocaml
flodin has joined #ocaml
lpil5 has joined #ocaml
octarin_ has joined #ocaml
micro_ has joined #ocaml
sheijk_ has joined #ocaml
niklasl2 has joined #ocaml
notnotda1` has joined #ocaml
micro_ is now known as Guest63115
rks`_ has joined #ocaml
Cypi_ has joined #ocaml
jstolare1 has joined #ocaml
DanielRi1hman has joined #ocaml
cross_ has joined #ocaml
rks` has quit [Killed (karatkievich.freenode.net (Nickname regained by services))]
rks`_ is now known as rks`
andrewalker_ has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0_ has joined #ocaml
notnotda1` is now known as notnotdan
ziyourenxiang has quit [*.net *.split]
andrewalker has quit [*.net *.split]
zapashcanon has quit [*.net *.split]
erkin has quit [*.net *.split]
Khady has quit [*.net *.split]
freusque has quit [*.net *.split]
maker has quit [*.net *.split]
octarin has quit [*.net *.split]
sheijk has quit [*.net *.split]
Cypi has quit [*.net *.split]
diginet has quit [*.net *.split]
flodin_ has quit [*.net *.split]
micro has quit [*.net *.split]
lpil has quit [*.net *.split]
diginet_ is now known as diginet
niklasl has quit [*.net *.split]
notnotdan` has quit [*.net *.split]
dmiles has quit [*.net *.split]
infinity0 has quit [*.net *.split]
kalio_ has quit [*.net *.split]
DanielRichman has quit [*.net *.split]
lyxia has quit [*.net *.split]
cross has quit [*.net *.split]
tobiasBora has quit [*.net *.split]
psacrifice has quit [*.net *.split]
hannes has quit [*.net *.split]
jstolarek has quit [*.net *.split]
eikke has quit [*.net *.split]
so has quit [*.net *.split]
logicmoo has joined #ocaml
kapilp has quit [Quit: Connection closed for inactivity]
freusque has joined #ocaml
maker has joined #ocaml
lyxia has joined #ocaml
tobiasBora has joined #ocaml
kalio_ has joined #ocaml
<
cemerick>
Can anyone decode this error? "The 1st type parameter was expected to be covariant, but it is injective invariant."
<
octachron>
It means that the first type parameter appear both in covariant and contavariant position and is thus invariant
<
cemerick>
ah-ha, that might be a good hint, thanks
<
ggole>
Mutable fields count as invariant, btw
<
cemerick>
yeah, not in a mutable context, thankfully
<
ggole>
eg, type +'a t = 'a ref
<
cemerick>
I do happen to have a set of recursive modules though, so I might be SOL regardless, at least given the gist of the open bug
FreeBirdLjj has joined #ocaml
hannes` has left #ocaml [#ocaml]
hannes has joined #ocaml
unyu has quit [Ping timeout: 252 seconds]
ygrek has joined #ocaml
Birdface has joined #ocaml
AtumT has joined #ocaml
themsay has joined #ocaml
kapilp has joined #ocaml
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #ocaml
themsay has quit [Remote host closed the connection]
AtumT has quit [Quit: AtumT]
q9929t has quit [Quit: q9929t]
FreeBirdLjj has quit [Remote host closed the connection]
Birdface has quit [Ping timeout: 252 seconds]
so has joined #ocaml
eikke has joined #ocaml
Khady_ has quit [Changing host]
Khady_ has joined #ocaml
barockobamo has quit [Remote host closed the connection]
tane has joined #ocaml
govg has quit [Ping timeout: 259 seconds]
tane has quit [Quit: Leaving]
ggole has quit [Quit: Leaving]
Khady_ is now known as khady
jack5638 has quit [Ping timeout: 246 seconds]
jack5638 has joined #ocaml
ravenous_ has joined #ocaml
gravicappa has quit [Ping timeout: 258 seconds]
jbrown has quit [Remote host closed the connection]
cropcircle has joined #ocaml
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #ocaml
ravenous_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unyu has joined #ocaml
oni-on-ion has joined #ocaml
kapilp has quit [Quit: Connection closed for inactivity]
Jesin has joined #ocaml
apostolis has joined #ocaml
<
apostolis>
Hello, is it possible to have recursion with zero arguments? The function produces a stream.
pierpal has quit [Ping timeout: 252 seconds]
andreas303 has quit [Ping timeout: 256 seconds]
andreas303 has joined #ocaml
jbrown has joined #ocaml
<
companion_cube>
nope, you need some form of `unit -> …` or lazyness
<
companion_cube>
look into the standard `Seq.t`
cropcircle has quit [Read error: No route to host]
Guest45513 has joined #ocaml
kakadu has joined #ocaml
stux|RC-- has joined #ocaml
stux|RC has quit [Ping timeout: 245 seconds]
Guest45513 has quit [Remote host closed the connection]
Haudegen has joined #ocaml
Haudegen has quit [Remote host closed the connection]
Haudegen has joined #ocaml
apostolis has quit [Ping timeout: 252 seconds]
Haudegen has quit [Remote host closed the connection]
kakadu has quit [Remote host closed the connection]
weird_error has joined #ocaml
weird_error has quit [Quit: weird_error]
ygrek has quit [Ping timeout: 258 seconds]
pierpal has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
pierpal has quit [Ping timeout: 248 seconds]