Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.1.1 released: https://ocaml.org/releases/5.1.1 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
mizlan has joined #ocaml
mizlan has quit [Remote host closed the connection]
mizlan has joined #ocaml
mizlan has quit [Ping timeout: 268 seconds]
mizlan has joined #ocaml
mizlan has quit [Ping timeout: 260 seconds]
torretto has quit [Remote host closed the connection]
torretto has joined #ocaml
waleee has quit [Ping timeout: 255 seconds]
mizlan has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
mizlan has quit [Ping timeout: 246 seconds]
mbuf has joined #ocaml
zanetti has joined #ocaml
Serpent7776 has joined #ocaml
bartholin has joined #ocaml
azimut has quit [Ping timeout: 260 seconds]
zanetti has quit [Ping timeout: 240 seconds]
zanetti has joined #ocaml
jabuxas has joined #ocaml
Serpent7776 has quit [Ping timeout: 264 seconds]
c7s has joined #ocaml
c7s has left #ocaml [#ocaml]
waleee has joined #ocaml
waleee has quit [Ping timeout: 268 seconds]
<discocaml> <coollcat> damn I wish there was an IDE for OCaml
<discocaml> <coollcat> Is there even a market for such a thing?
<discocaml> <coollcat> I come from java-land. It seems for most other languages, they are content with a text-editor + lsp.
<discocaml> <purefunctor> the LSP works pretty well on vs code, although it'd be nice if JetBrains hopped on and made an IDE for OCaml 😄
Tuplanolla has joined #ocaml
Serpent7776 has joined #ocaml
Anarchos has joined #ocaml
<Anarchos> i want to parse an infinite flow of commands with a lexer/parser written in ocamllex/ocamlyacc. The source is a socket receiving the strings. Is Lexing.from_channel the the lexbuf to use with a socket ? Will it unblock and refill the lexbuf when the socket receives new strings ?
jabuxas has quit [Quit: oops :p]
<discocaml> <Kali> there is at least some sort of desire for one, given the existence of https://www.typerex.org/ocaml-top.html
Anarchos has quit [Quit: Vision[]: i've been blurred!]
cr1901_ has quit [Read error: Connection reset by peer]
cr1901 has joined #ocaml
dnh has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<discocaml> <barconstruction> @coollcat I have not used jet brains and Java. What features are conspicuously absent from the lsp server that you would want? Like I don't know what I'm missing, would it be possible to add these features to be lsp server or no
azimut has joined #ocaml
<discocaml> <regularspatula> There’s so much more to JetBrains than the lsp gives for ocaml. Though I can be productive in OCaml without, I can’t imagine doing C# without Rider
azimut has quit [Ping timeout: 260 seconds]
<discocaml> <regularspatula> @barconstruction I got a couple of tiny PRs back in the day for owl but nothing serious…going forward I think the project will need a leader (and funding) to really make much progress
ds-ac1 has joined #ocaml
<discocaml> <Et7f3 (@me on reply)> When I used JetBrain IDEA it has builtin support for maven (the build tool), fix import, reformat. Those should be in ocaml-lsp. @coollcat I don't remember but does JetBrains generate test case ? (It is really cool for a lang with much boilerplate) the go lsp was able to do that so it is nothing something special about it. Rider have a gui editor (we don't have a library that has enough adoption) and go has debugger facility (we h
<discocaml> <regularspatula> JetBrains debuggers are nice
azimut has joined #ocaml
rito has joined #ocaml
rito has quit [Quit: Leaving]
a51 has quit [Quit: WeeChat 4.2.1]
mbuf has quit [Quit: Leaving]
jabuxas has joined #ocaml
jabuxas has quit [Read error: Connection reset by peer]
dnh has joined #ocaml
dnh has quit [Client Quit]
jabuxas has joined #ocaml
a51 has joined #ocaml
bartholin has quit [Quit: Leaving]
zanetti has quit [Quit: zanetti]
<abbe__> hi
Serpent7776 has quit [Ping timeout: 240 seconds]
<abbe__> I'm having a problem with module system https://www.irccloud.com/pastebin/uiURjUBy/mods.ml
<abbe__> Now when I try do: 'Mods.Foo.make 42;;' in utop, I get:
<abbe__> Error: This expression has type int but an expression was expected of type Mods.Foo.e
<abbe__> is there a way to hint ocaml compiler that Foo.e is synonym for int, so it lets me pass ant in wherever e is expected ?
<abbe__> s/ant in/an int/
<discocaml> <Kali> yes, add `with type e = int` after `: FooType`
<dh`> you've explicitly hidden that the type is int, so it's doing what you asked
<abbe__> okay, and I still need to keep 'type e = int' in the struct ?
<abbe__> indeed that seems to work.
<discocaml> <Kali> yes
<discocaml> <Kali> the other option is to expose that `type e = int` directly in the signature instead of `type e`
<abbe__> okay
<abbe__> thanks!
jabuxas has quit [Ping timeout: 246 seconds]