<discocaml>
<anmonteiro> this is done on purpose to avoid unused type warnings
<discocaml>
<anmonteiro> this is done on purpose to avoid unused type/value warnings
YuGiOhJCJ has joined #ocaml
jabuxas has joined #ocaml
<discocaml>
<yawaramin> oh...but why would we not want unused warnings? eg above i want to use the type `t` and value `ret`. if i didn't, it's a mistake...
toastal has joined #ocaml
myrkraverk_ has quit [Read error: Connection reset by peer]
myrkraverk_ has joined #ocaml
jabuxas has quit [Ping timeout: 256 seconds]
landonf has quit [Server closed connection]
landonf has joined #ocaml
jusensei2 has quit [Server closed connection]
jusensei2 has joined #ocaml
toastal has left #ocaml [Disconnected: Replaced by new connection]
toastal has joined #ocaml
<discocaml>
<sim642> Maybe because some derivers generate a bunch of different things, not all of whom you might actually use
mbuf has joined #ocaml
<discocaml>
<sim642> Although could also use attributes to suppress the warning locally
<discocaml>
<sim642> And I have no idea about the first ignored unit function
Serpent7776 has joined #ocaml
<discocaml>
<anmonteiro> it uses the type `(_: t)`
<discocaml>
<sim642> But the type is created by the user not the deriver, so if the type is unused then the user might want to know. Or if the derived function needs it, the annotation could just be included there
bartholin has joined #ocaml
dreadedfrog has joined #ocaml
dreadedfrog has quit [Ping timeout: 268 seconds]
dreadedfrog has joined #ocaml
cross has quit [Server closed connection]
cross has joined #ocaml
tomku has quit [Remote host closed the connection]
tomku has joined #ocaml
dreadedfrog has quit [Ping timeout: 240 seconds]
dreadedfrog has joined #ocaml
Tuplanolla has joined #ocaml
dreadedfrog has quit [Ping timeout: 268 seconds]
dreadedfrog has joined #ocaml
johnel has quit [Server closed connection]
johnel has joined #ocaml
dhil has joined #ocaml
<discocaml>
<darrenldl> you checked with wireshark about the tcp traffic?
waleee has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
waleee has quit [Ping timeout: 268 seconds]
ggb has quit [Server closed connection]
ggb has joined #ocaml
bartholin has quit [Quit: Leaving]
toastal has quit [Ping timeout: 260 seconds]
whereiseveryone has quit [Server closed connection]
whereiseveryone has joined #ocaml
tomku has quit [Ping timeout: 260 seconds]
tomku has joined #ocaml
jmcantrell has quit [Server closed connection]
jmcantrell has joined #ocaml
<discocaml>
<getzapped.> Is there any config option to stop ocamlformat from wrapping larger match arm bodies in parentheses? I type this:
<discocaml>
<getzapped.> ```ocaml
<discocaml>
<getzapped.> | Some num ->
<discocaml>
<getzapped.> match Grid.drop ~grid ~col:num ~player:grid.current with
<discocaml>
<getzapped.> | Some g -> main_loop ~grid:(Grid.switch g)
<discocaml>
<getzapped.> | None ->
<discocaml>
<getzapped.> print_endline "Something went wrong";
<discocaml>
<getzapped.> main_loop ~grid
<discocaml>
<getzapped.> ```
<discocaml>
<getzapped.> and the formatter turns it into this
<discocaml>
<getzapped.> ```ocaml
<discocaml>
<getzapped.> | Some num -> (
<discocaml>
<getzapped.> match Grid.drop ~grid ~col:num ~player:grid.current with
<discocaml>
<getzapped.> | Some g -> main_loop ~grid:(Grid.switch g)
<discocaml>
<getzapped.> | None ->
<discocaml>
<getzapped.> print_endline "Something went wrong";
<discocaml>
<getzapped.> main_loop ~grid)
<discocaml>
<getzapped.> ```
<discocaml>
<otini_> I don’t know, but I prefer to always parenthesize (or put in a `let ... in` due to the ambiguity of the syntax.
<discocaml>
<otini_> I don’t know, but personally I prefer to always parenthesize (or put in a `let ... in`) due to the ambiguity of the syntax.
<discocaml>
<deepspacejohn> Yeah. I realize this doesn't answer the question, but IMO it's best to use `( )`/`begin end`/`let in` anyway because otherwise the syntax is ambiguous.
dinosaure has quit [Ping timeout: 260 seconds]
dinosaure has joined #ocaml
<palainp>
§1
<palainp>
oups
<discocaml>
<limp.biskit> for now i am just gonna leave it and debug later
<discocaml>
<limp.biskit> i'm on wsl2 so i'm not sure how i'd even capture packets. i think their stack uses uring as well so i can't rule out kernel version weirdness
<discocaml>
<getzapped.> i can live with begin end, but the formatter still turns begin into ( and end into ) in this case. is there something i can do to make it not?
dreadedfrog has quit [Remote host closed the connection]
<discocaml>
<yawaramin> true, some might. but i don't think ppx_deriving_yojson does? it just generates `of_yojson` or `to_yojson` or similar functions depending on the exact deriving syntax you used. eg you can generate _only_ a serializer by just doing `[@@deriving to_yojson]`. but sure, maybe ppxlib is doing this out of 'an abundance of caution'. the utility is arguable, though, i think.
jabuxas has joined #ocaml
prgbln has quit [Server closed connection]
prgbln has joined #ocaml
toastal has left #ocaml [Error from remote client]