raver has quit [Remote host closed the connection]
mfp has quit [Ping timeout: 256 seconds]
wreed has quit [Quit: Goodbye]
wreed has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
wreed has quit [Quit: Goodbye]
amiloradovsky has quit [Ping timeout: 272 seconds]
mbuf has joined #ocaml
amiloradovsky has joined #ocaml
ygrek_ has quit [Ping timeout: 264 seconds]
dborisog has joined #ocaml
narimiran has joined #ocaml
amiloradovsky has quit [Ping timeout: 265 seconds]
noddy has quit [Ping timeout: 256 seconds]
chripell has joined #ocaml
narimiran has quit [Quit: leaving]
narimiran has joined #ocaml
<mbuf>
This expression has type Yojson.Basic.t but an expression was expected of type int - https://pastebin.com/dMESgdqH, Why?
<octachron>
Core or Base redefine `=` to only work on ints
<hannes>
mbuf: I suspect it is because you "open Core" which defines equality "=" as "int -> int -> int" (i.e. overwrites the polymorphic comparison defined by OCaml)
TheLemonMan has joined #ocaml
runawayfive has quit [Ping timeout: 260 seconds]
amiloradovsky has joined #ocaml
runawayfive has joined #ocaml
<mbuf>
octachron, hannes okay!
mfp has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
tane has joined #ocaml
<mbuf>
I used, print_endline (if (Yojson.Basic.equal json1 json2) then "OK" else "FAIL")
raver has joined #ocaml
tane has quit [Quit: Leaving]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
Anarchos has joined #ocaml
Anarchos has quit [Remote host closed the connection]
Anarchos has joined #ocaml
Anarchos has quit [Remote host closed the connection]
EduardoRFS has quit [Ping timeout: 256 seconds]
Anarchos has joined #ocaml
<Anarchos>
Where can i find the official documentation of ocamlobjinfo ?
<octachron>
Unfortunately, there are no official documentation for ocamlobjinfo
<Anarchos>
octachron i have a library lib.cma, when i load it into the toplevel with #load "lib.cma", i can't open any module from this lib.
<Anarchos>
it is compiled with dune, which adds those stranges Lib__ prefix
<companion_cube>
because it's wrapped by default
<companion_cube>
your modes are in Lib.Foo
<Anarchos>
i tried "open Lib.Mod " too
<octachron>
Did you check that the cmis are in the path?
<Anarchos>
octachron dune built no cmi.
<companion_cube>
they're in _build
<Anarchos>
companion_cube no there is no .cmi when i do «dune build src/lib.cma»
<octachron>
No. Cmis are always built.
<companion_cube>
sigh, have you tried to just install the library and use ocamlfind?
<companion_cube>
dune build foo.cma is kind of a red flag
<octachron>
there are in the .lib.objs/byte folder
<Anarchos>
oh yes i didn't know
<Anarchos>
so i must add this directory to the -I flag to ocaml ?
<companion_cube>
ugh, no, use ocamlfind
<companion_cube>
or opam, even
<Anarchos>
companion_cube sure, but i just want to test the lib in the toplevel
<Anarchos>
companion_cube no opam on HaikuOS cause my isntall is too exotic
<companion_cube>
`dune utop`?
<companion_cube>
ah well, good luck then 🤷
<Anarchos>
companion_cube : Error: Library "utop" not found.
<companion_cube>
ah and you don't have opam
<Anarchos>
companion_cube yes i have opam
<Anarchos>
but i should pinned too much package
<companion_cube>
opam install utop
<companion_cube>
(although the brand new dune has `dune top` I think)
<companion_cube>
(which is a normal toplevel)
<Anarchos>
thanks for your help
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
jbrown has joined #ocaml
companion_cube has quit [Quit: WeeChat 2.3]
ocabot has quit [Remote host closed the connection]
ocabot has joined #ocaml
companion_cube has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]