companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
azimut has quit [Ping timeout: 252 seconds]
random-jellyfish has quit [Quit: Client closed]
azimut has joined #ocaml
myrkraverk has quit [Ping timeout: 264 seconds]
<companion_cube> ah funny, use `%{read:…}`
<companion_cube> I use `(cat …)` I think, or run cat, sth like that
<companion_cube> but yeah I've done the same in dune many times
hrberg has joined #ocaml
bibi_ has quit [Quit: Konversation terminated!]
C4ln3r1337 has joined #ocaml
C4ln3r1337 has quit [Client Quit]
C4ln3r has quit [Ping timeout: 240 seconds]
ns12 has joined #ocaml
azimut has quit [Ping timeout: 252 seconds]
myrkraverk has joined #ocaml
edr has quit [Quit: Leaving]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 264 seconds]
TrillionEuroNote has quit [Ping timeout: 255 seconds]
TrillionEuroNote has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrisz has quit [Ping timeout: 246 seconds]
chrisz has joined #ocaml
_whitelogger has joined #ocaml
TrillionEuroNote has quit [Ping timeout: 244 seconds]
TrillionEuroNote has joined #ocaml
gwizon has joined #ocaml
myrkraverk_ has quit [Quit: Leaving]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tuplanolla has joined #ocaml
myrkraverk has joined #ocaml
bartholin has joined #ocaml
rgrinberg has joined #ocaml
Serpent7776 has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Techcable has joined #ocaml
rgrinberg has joined #ocaml
Techcable has quit [Ping timeout: 240 seconds]
rgrinberg has quit [Client Quit]
dnh has joined #ocaml
rgrinberg has joined #ocaml
uncomfy has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bartholin has quit [Quit: Leaving]
rgrinberg has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
azimut has joined #ocaml
dnh has joined #ocaml
random-jellyfish has joined #ocaml
uncomfy has quit [Ping timeout: 252 seconds]
uncomfy has joined #ocaml
yziquel has joined #ocaml
gwizon has quit [Quit: Lost terminal]
dhil has joined #ocaml
random-jellyfish has quit [Quit: Client closed]
bartholin has joined #ocaml
uncomfy has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
waleee has joined #ocaml
rgrinberg has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
azimut has quit [Ping timeout: 252 seconds]
yziquel has quit [Quit: Client closed]
olle has joined #ocaml
<olle> How do I define the .opam file after installing all dependencies?
dnh has quit [Quit: Textual IRC Client: www.textualapp.com]
<olle> For my project, not home file
<olle> Or is that a dune thing rather? o0
<Ankhers> What exactly does the ocp-indent package do, and is it important if I am using the emacs tuareg mode?
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
azimut has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Ping timeout: 245 seconds]
Anarchos has joined #ocaml
dnh has joined #ocaml
<discocaml> <sim642> olle, you can list your dependencies in the dune-project file and generate the opam file from that
waleee has quit [Ping timeout: 240 seconds]
rgrinberg has joined #ocaml
waleee has joined #ocaml
<Ankhers> I have a file in a known format. I want to use String.split_on_char to split it into two strings. This should always succeed, if it does not, I am fine with the application crashing. But when I do let (first :: second) = String.split_on_char '-' my_string, I get an error saying that the pattern is non-exhaustive. I understand what this means, but is there a way to bypass this without needing to
Anarchos has quit [Ping timeout: 258 seconds]
<Ankhers> use a match with a catch all that just calls failwith?
<discocaml> <jumpnbrownweasel> you can do `assert false` in the catch all. this doesn't return of course, but is typed to returns 'a, meaning that it satisfies any type constraint in that position.
<discocaml> <jumpnbrownweasel> oh, `failwith` is typed the same way, so either one works.
<discocaml> <jumpnbrownweasel> i use `assert false` when it is easily provable that it can never happen, and `failwith` otherwise
bartholin has quit [Quit: Leaving]
dnh has quit [Ping timeout: 240 seconds]
dnh has joined #ocaml
<Ankhers> The point being though, that I do need to include that branch and I can't just simply assign like that. Thanks.
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<discocaml> <jumpnbrownweasel> Right, all pattern matching is exhaustive.
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<discocaml> <._null._> You can have non-exhaustive pattern matching, if you explicitly disable the warning (you can disable it locally)
bibi_ has joined #ocaml
troydm has quit [Ping timeout: 260 seconds]
troydm has joined #ocaml
Serpent7776 has quit [Ping timeout: 258 seconds]
xmachina has quit [Quit: WeeChat 4.0.4]
sagax has joined #ocaml
xmachina has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xmachina has quit [Quit: WeeChat 4.0.4]
Tuplanolla has quit [Ping timeout: 252 seconds]
John_Ivan has joined #ocaml
uncomfy has joined #ocaml
xmachina has joined #ocaml