Bronsa has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
Bronsa has joined #ocaml
shinnya has quit [Ping timeout: 256 seconds]
cbot has joined #ocaml
cbot_ has quit [Ping timeout: 260 seconds]
moolc has joined #ocaml
pioneer42 has quit [Ping timeout: 240 seconds]
silver has quit [Read error: Connection reset by peer]
mfp has quit [Ping timeout: 264 seconds]
bairui has quit [Ping timeout: 264 seconds]
pioneer42 has joined #ocaml
pioneer42 has left #ocaml [#ocaml]
bairui has joined #ocaml
Bronsa has quit [Ping timeout: 240 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
spew has joined #ocaml
spew has quit [Ping timeout: 240 seconds]
moolc has quit [Remote host closed the connection]
govg has joined #ocaml
pierpa has quit [Quit: Page closed]
pierpa has joined #ocaml
jimmyrcom has joined #ocaml
mbuf has joined #ocaml
tarptaeya has joined #ocaml
letoh has quit [Ping timeout: 240 seconds]
muelleme has joined #ocaml
muelleme has quit [Ping timeout: 264 seconds]
zolk3ri has joined #ocaml
cbot has quit [Quit: Leaving]
MercurialAlchemi has joined #ocaml
magicbit has quit [Ping timeout: 240 seconds]
igitoor has quit [Ping timeout: 256 seconds]
igitoor has joined #ocaml
igitoor has quit [Changing host]
igitoor has joined #ocaml
ygrek has joined #ocaml
salc has quit [Ping timeout: 268 seconds]
salc has joined #ocaml
muelleme has joined #ocaml
muelleme has quit [Ping timeout: 264 seconds]
jimmyrcom has quit [Ping timeout: 256 seconds]
<_xvilka_>
hi
<_xvilka_>
I have a function that returns Or_error.t
<_xvilka_>
but now I need to differentiate between different error cases in the upper level function that calls this one
<_xvilka_>
can I somehow match the Or_error.t?
<_xvilka_>
or should I replace its output with variant type instead?
Haudegen has joined #ocaml
kakadu has joined #ocaml
gtrak has quit [Ping timeout: 264 seconds]
gtrak has joined #ocaml
remix2000 has quit [Quit: milk]
muelleme has joined #ocaml
moolc has joined #ocaml
muelleme has quit [Ping timeout: 240 seconds]
argent_smith has joined #ocaml
<reynir>
Where does Or_error come from?
<_xvilka_>
reynir: what do you mean?
<_xvilka_>
from Core
<reynir>
Ok, yes that's what I meant
<reynir>
yea, you can match on it: let f (x : _ Core.Or_error.t) = match x with Core.Result.Ok x -> print_string x | Core.Result.Error e -> ()
dhil has joined #ocaml
<_xvilka_>
reynir: but your code doesn't differentiate between different errors, only separe Ok states from Error states
<_xvilka_>
*separate
<reynir>
Oh, sorry yea
<reynir>
I don't know how you use Core.Error, sorry
Bronsa has joined #ocaml
Bronsa has quit [Ping timeout: 240 seconds]
AltGr has joined #ocaml
<rks`>
_xvilka_: you should use a proper variant type for the error, or raise an exception
<rks`>
'a Or_error.t (which is just ('a, Error.t) result) is good when you don't care what the error is
<rks`>
if you do, use your own ('a, something) result
moolc has left #ocaml ["ERC (IRC client for Emacs 27.0.50)"]
mfp has joined #ocaml
tarptaeya has quit [Quit: Byeeeeeee!]
muelleme has joined #ocaml
muelleme has quit [Ping timeout: 260 seconds]
dhil has quit [Ping timeout: 246 seconds]
<_xvilka_>
rks`: ok, I suspected that, thanks
mk9 has joined #ocaml
silver has joined #ocaml
spew has joined #ocaml
spew has quit [Read error: Connection reset by peer]
Haudegen has quit [Read error: Connection reset by peer]
dhil has joined #ocaml
averell has joined #ocaml
<chindy>
Anyone know how to goto definition in the ml file from the mli file declaration using merlin/tuareg
maxdos has joined #ocaml
averell has quit [Quit: .]
<maxdos>
hi there :) me again
<maxdos>
again with this mantis bug
<maxdos>
nobody seems to feel responsible for this i feel
averell has joined #ocaml
<maxdos>
so i might ask does anybody know who is driving this bug tracker ?
<Drup>
maxdos: I don't really understand your problem, but as yaron said, if you have bugs to report on the "core" library, mantis is NOT the right place
<maxdos>
well i replied to this i didnt mean the core lib
<orbifx>
is kaputt maintained? seems quite dated from how it builds
<kino`>
It is dated
<kino`>
not quite sure, to be honest
<orbifx>
What do you need it for? Any alternatives?
<kino`>
It's a swell library for testing
<kino`>
Ah.
<kino`>
It installed find
<kino`>
Kaputt installed fine.
<kino`>
Man, thank you both octachron and orbifx for your time.
<kino`>
I don't quite get what fails without using the switch
<orbifx>
You are welcome
<orbifx>
What I think fails, is that opam's environment is not properly configured when using the system's compiler, specially if it's initialised with findlib and other basic packages missing.
ygrek has quit [Ping timeout: 264 seconds]
<kino`>
Hm.
<orbifx>
I'd advise to stick with switches to avoid breakages when upgrading your system.
<kino`>
I'll follow that.
navaja has quit [Ping timeout: 260 seconds]
ansiwen[q] has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
cbot has joined #ocaml
shinnya has joined #ocaml
kakadu has quit [Remote host closed the connection]
orbifx has quit [Ping timeout: 240 seconds]
jao has quit [Ping timeout: 260 seconds]
Haudegen has quit [Remote host closed the connection]