<discocaml>
<froyo> best practices section is very useful and should be pushed all the way up imo
<discocaml>
<froyo> you wanna find out what the magic incantation is to start a dune project more often than you'd be interested in calling c functions
<discocaml>
<dexmax> Not sure if I'm doing something right because I can't find any docs online about importing packages from opam
<discocaml>
<znaniye> someone using nix here?
<dmbaturin>
Well, first, module names are not the same as opam package names. The module that xml-light provides is named Xml, and the statement to open it is `open Xml` (although opening modules globally isn't a necessary). Second, there's a typo in `print_endline`.
<discocaml>
<dexmax> Thanks, where did you find the module name? Also where can I find the docs for using opam packages?
<discocaml>
<dexmax> None of the docs that I have seen have mentioned anything about open
<dmbaturin>
In the docs, although you can also browse the tab completion in utop. `#require "xml-light"`, type some names and see completions.
<dmbaturin>
There's https://docs.ocaml.pro if you want a large documentation hub. It's not as large or widely adopted as docs.rs (yet) so it will not free you from having to look up individual libs docs or browse them, but it's better than nothing.
<dmbaturin>
Also, you may want to look at https://opam.ocaml.org/packages/ezxmlm/ if you want an XML parser. It's more actively maintained, although there are things I do like about xml-light.
<olle>
yo yo camels, I'm still looking for a proper sexp diff output to show exactly the difference
<olle>
Any tips?
<olle>
No Base please...
<discocaml>
<sim642> Most sexp stuff is Jane Street related though, in OCaml that is
<olle>
discocaml: :(
<olle>
Oh wait
<olle>
Wrong
<olle>
sim642: :(
<dmbaturin>
I wish people used them less...
<olle>
There
<olle>
Used sexp less?
<dmbaturin>
Yes.
<olle>
Why? Or what instead?
<olle>
How to compare types?
<dmbaturin>
...a sexp differ wouldn't be too hard to make, I think.
<olle>
Well I want pretty output
<olle>
But yeah, I guess
<discocaml>
<deepspacejohn> for diffing output, Dune's expect tests or cram tests are both seem pretty good IMO.
<dmbaturin>
Well, my biggest question for a spec for such a tool would be the output format. For a simple diff(1)-like output, a sexp _normalizer_/pretty-printer and a regular diff(1) would do.
<olle>
Hm
<olle>
deepspace, can Dune do diff natively?
Techcable has quit [Remote host closed the connection]
Techcable has joined #ocaml
<discocaml>
<deepspacejohn> I’m not sure
<olle>
kk
Serpent7776 has quit [Ping timeout: 240 seconds]
olle has quit [Ping timeout: 260 seconds]
szkl has quit [Quit: Connection closed for inactivity]
noob1 has joined #ocaml
<noob1>
hi ,I am new to programming ,I have done lots of research and find out that ocaml is used as a first language to teach programming
<noob1>
can i do the same by my own
<noob1>
because i cant afford attending a college or university
<noob1>
I am patient and I want to do the right thing not the easiest thing available to do
noob1 has quit [Quit: Client closed]
Guest92 has joined #ocaml
Guest92 has quit [Client Quit]
<discocaml>
<anurag_soni> olle: not sure why you want to avoid Janestreet libraries. They have a library that fits this need https://github.com/janestreet/sexp_diff