adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.06.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.06/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
gtrak has joined #ocaml
gtrak has quit [Ping timeout: 246 seconds]
gtrak has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 is now known as Guest12660
infinity0 has joined #ocaml
Guest12660 has quit [Ping timeout: 256 seconds]
sh0t has quit [Remote host closed the connection]
jao has quit [Ping timeout: 246 seconds]
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
<maxdos> i meant this https://github.com/ocaml/ocaml
<Drup> right
<octachron> maxdos, volunteer people on their free time, could you please stop selling short other people time?
<Drup> so, mantis works fine for me, so it's difficult to say what the issue is :/
<maxdos> octachron, as you might see here im also working volunteering here by contributing what i think is an issue
<maxdos> as i said
<maxdos> i can not receive the account activation email
<octachron> maxdos, and if it is an urgent/crucial bug, you can describe it here or on discuss
<maxdos> i tried several times with different accounts
<maxdos> i have prepared detailed report on the issue
<Drup> I supposed you checked your spam folder ?
<maxdos> which i would like to upload properly
<maxdos> yes i did, so other people dont have this issue ?
<Drup> not afaics
<maxdos> hmm ok
<maxdos> ok i think what i gonna do is
<maxdos> i will upload the documents to my webstorage
<maxdos> and then share a link
<maxdos> i just wanted to urge the issue and not waste anyones time here
<maxdos> but you refer on the github on using the tracker and i cant use it, so i wanted to check if im the only one facing this issue
<maxdos> and how i can resolve it
<octachron> maxdos, thanks for reporting the issue, but urging the issue can be a bit counterproductive
<maxdos> just wanted to make sure the responsible person is aware
spew has joined #ocaml
sh0t has joined #ocaml
dhil has quit [Ping timeout: 252 seconds]
mk9 has quit [Quit: mk9]
maxdos has quit [Quit: Page closed]
mbuf has quit [Quit: Leaving]
mk9 has joined #ocaml
mk9 has quit [Remote host closed the connection]
Haudegen has joined #ocaml
_andre has joined #ocaml
mk9 has joined #ocaml
dhil has joined #ocaml
shinnya has joined #ocaml
sh0t has quit [Remote host closed the connection]
gtrak has quit [Ping timeout: 264 seconds]
letoh has joined #ocaml
sepp2k has joined #ocaml
aciniglio has joined #ocaml
gtrak has joined #ocaml
tarptaeya has joined #ocaml
freyr has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 276 seconds]
shinnya has quit [Ping timeout: 268 seconds]
muelleme has joined #ocaml
sh0t has joined #ocaml
al-damiri has joined #ocaml
muelleme has quit [Ping timeout: 252 seconds]
tane has joined #ocaml
jimmyrcom has joined #ocaml
jimmyrcom has quit [Ping timeout: 276 seconds]
webshinra has quit [Ping timeout: 256 seconds]
pierpa has quit [Ping timeout: 260 seconds]
pierpa has joined #ocaml
webshinra has joined #ocaml
mbuf has joined #ocaml
nicoo has quit [Ping timeout: 268 seconds]
nicoo has joined #ocaml
freyr has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
mk9 has quit [Quit: mk9]
Bronsa has joined #ocaml
igitoor has quit [Ping timeout: 246 seconds]
nk has joined #ocaml
Onemorenickname has joined #ocaml
tarptaeya has quit [Quit: Byeeeeeee!]
mk9 has joined #ocaml
igitoor has joined #ocaml
igitoor has quit [Changing host]
igitoor has joined #ocaml
dtornabene has quit [Read error: Connection reset by peer]
dtornabene has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
wagle has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
orbifx has joined #ocaml
mbuf has quit [Quit: Leaving]
orbifx has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
madroach has joined #ocaml
Bronsa has quit [Ping timeout: 246 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
mk9 has quit [Quit: mk9]
FreeBirdLjj has quit [Ping timeout: 276 seconds]
muelleme has joined #ocaml
jnavila has joined #ocaml
onion has quit [Read error: No route to host]
aciniglio has quit [Ping timeout: 276 seconds]
onion has joined #ocaml
onion has quit [Client Quit]
onion has joined #ocaml
onion is now known as whoman
whoman is now known as onion
muelleme has quit [Ping timeout: 248 seconds]
onion has quit [Read error: No route to host]
slash^ has joined #ocaml
onion has joined #ocaml
tane has quit [Quit: Leaving]
onion is now known as whoman
whoman is now known as onion
dhil has quit [Ping timeout: 240 seconds]
muelleme has joined #ocaml
kino` has joined #ocaml
<kino`> Is it possible for outdated package to stay on opam?
dhil has joined #ocaml
<kino`> For example, I have troubles installing kaputt with opam...
dhil has quit [Ping timeout: 264 seconds]
muelleme has quit [Ping timeout: 240 seconds]
Haudegen has quit [Remote host closed the connection]
mk9 has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
mk9 has quit [Quit: mk9]
zolk3ri has quit [Remote host closed the connection]
zolk3ri has joined #ocaml
dtornabene has quit [Ping timeout: 256 seconds]
dtornabene has joined #ocaml
orbifx has joined #ocaml
muelleme has joined #ocaml
dtornabene has quit [Read error: Connection reset by peer]
Guest51402 has joined #ocaml
Guest51402 is now known as Haudegen
<kino`> Sorry for asking so many beginner questions, but I'm getting kinda desperate.
<kino`> Does anyone know where I can find the Big_int module? opam won't install kaputt because of this, although it installed fine on my other pc
<octachron> you need to install the num library
<kino`> ah, but it's installed already :/
<octachron> are you using a system switch? otherwise, you could check that your version of ocamlfind is up-to-date
<kino`> No, I'm not. How do I check that? opam install tells me that it's already installed and opam upgrade is completed.
pierpa_ has joined #ocaml
AltGr has left #ocaml [#ocaml]
leah2 has quit [Ping timeout: 256 seconds]
<octachron> kino`, to check the installed version of a package : "opam info ocamlfind"
<kino`> I've got 1.7.3-1, seems like the latest
isd has joined #ocaml
lostman has joined #ocaml
<octachron> yes. Do you see the num files in the compiler folder (aka "$(ocamlc -where)") ?
muelleme has quit [Ping timeout: 276 seconds]
mk9 has joined #ocaml
<kino`> Hm, none of my installed packages are there
<octachron> only num should be here. Did you run "eval $(opam config env)"? (and is the "ocaml -version" number the one that you expected?)
<kino`> So, num is not. I've run the eval and `ocaml -version` is 4.06.0, as expected.
jnavila has quit [Remote host closed the connection]
NingaLeaf has joined #ocaml
leah2 has joined #ocaml
kino` has quit [Quit: WeeChat 2.1]
zv has quit [Quit: WeeChat 1.9]
kino` has joined #ocaml
<kino`> (Sorry if I missed anything, my machine crashed)
leah2 has quit [Excess Flood]
<octachron> kino`, are you on OSX on this system?
<kino`> Nope, it's an Archlinux
<octachron> kino`, do you have the ocaml-num package installed?
<kino`> I do not
<octachron> and I imagine that reinstalling num does not work?
<kino`> I've tried removing it and installing it again with opam without success
Onemorenickname has quit [Read error: Connection reset by peer]
<kino`> (I've tried installing ocaml-num as well - didn't change a thing.)
<orbifx> kino`: can you paste in a pastebin the errors you get?
<kino`> Sure
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
zv has joined #ocaml
jao has joined #ocaml
mk9 has quit [Quit: mk9]
navaja has joined #ocaml
gtrak has quit [Ping timeout: 260 seconds]
mk9 has joined #ocaml
leah2 has joined #ocaml
<orbifx> kino`: and the one from trying to install num library?
<kino`> You mean with pacman ?
navaja has quit [Read error: Connection reset by peer]
<orbifx> hmm is that not an ocaml package?
<kino`> I mean, num installs fine with both opam
<kino`> and my distro package manager.
<kino`> Although it's only installed with opam right now.
<kino`> `[NOTE] Package num is already installed (current version is 1.1).`
navaja has joined #ocaml
<orbifx> Ok, there is a possibly your environmental variables are incoherent.
<orbifx> can you open Big_num in utop?
<kino`> (One minute, I don't have utop)
<kino`> I can open Big_int in utop.
<kino`> (If I #require "num")
<orbifx> hmm
<orbifx> I will try to install kaputt, is it small with few dependencies?
NingaLeaf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kino`> 300k with dependencies on num ocamlfind and ocamlbuild.
navaja has quit [Ping timeout: 240 seconds]
<orbifx> ok it installed fine on mine. Archlinux too.
<kino`> Yeah, it installed fine on my other pc as well :c
<orbifx> kino`: one quick and destructive way to possibly fix this is to wipe your .opam/ and install from scratch
<orbifx> make absolutely sure your environmental paths and other variables are correct
<kino`> I'll probably do that, it's a fresh install anyway
<orbifx> what shell are you using?
<kino`> zsh
<orbifx> k
<kino`> Uh.
<kino`> Even after removing .opam, the problem remains
_andre has quit [Quit: leaving]
<orbifx> do you run `opam init`?
<orbifx> do you run `opam init`?
<orbifx> do you run `opam init`?
<orbifx> oops sorry for the repeats
<kino`> Yes, I did after removing
<orbifx> can you paste `/home/kino/.opam/system/build/kaputt.1.2/kaputt-4067-e4db2f.err` ?
<kino`> `make: *** [Makefile:56: all] Error 10`
<kino`> (It's kaputt-19743-e4db2f.err for me)
<orbifx> that's all?
<kino`> Yeah, that's all there is
<kino`> I mean, that's all cat gave me
<kino`> The unbound module thingy is in stdout
<orbifx> have you installed caml-compiler-libs ocaml-findlib ocamlbuild via pacman?
<kino`> I had, but removed them while troubleshooting this
<kino`> Tried reinstalloing them right now, didn't change anything
<orbifx> I think installing them after might not update your environment sufficiently
<orbifx> Try using opam swith to install 4.06.0 via opam and then install kaputt in that switch
<kino`> Here is kaputt-Thingy.out ~ https://pastebin.com/CwAv4b7c
<kino`> Ah, right
navaja has joined #ocaml
<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]
Judocus has joined #ocaml