<p4bl0>
narimiran: that would open the my/path file as an input channel
<p4bl0>
I would like to open a string, not a file
<narimiran>
oh, i misunderstood you
hvn has quit [Ping timeout: 265 seconds]
Serpent7776 has joined #ocaml
count3rmeasure has quit [Ping timeout: 265 seconds]
gareppa has quit [Quit: Leaving]
zolk3ri has joined #ocaml
andrewlitteken has quit []
q9929t has joined #ocaml
q9929t has quit [Client Quit]
analogue has quit [Remote host closed the connection]
analogue has joined #ocaml
gareppa has joined #ocaml
<octachron>
p4bl0, you cannot directly. There are various workaround depending on what you are trying to do.
<p4bl0>
okay, thanks :)
RalfJ has quit [Remote host closed the connection]
RalfJ has joined #ocaml
hvn has joined #ocaml
hvn has quit [Ping timeout: 265 seconds]
<p4bl0>
is it possible at all to use ocaml without a build system like ocamlbuild or dune?
<p4bl0>
I'm trying to compile "by hand" a very little project and it's a nightmare
<malc_>
p4bl0: sure
malina has quit [Remote host closed the connection]
<p4bl0>
it is possible in theory, but in practice it is *hard*
<octachron>
which is the very reason why build system like ocamlbuild or dune exists
<ggole>
If you only have a few files you can get by with ocamlfind
KeyJoo has joined #ocaml
<p4bl0>
yeah, i guess it's the way to go
vicfred has quit [Quit: Leaving]
<p4bl0>
that said, I have another issue with ocamlbuild, which is actually not its fault but seems to be a bug in menhir (the .mli generated by the --infer option is bogus and makes ocamlbuild fail)
<companion_cube>
why not use dune, sorry?
vicfred has joined #ocaml
bartholin has quit [Remote host closed the connection]
hvn has joined #ocaml
gareppa has quit [Quit: Leaving]
hvn has quit [Ping timeout: 240 seconds]
_5HT has joined #ocaml
_5HT has quit [Remote host closed the connection]
<p4bl0>
companion_cube: I would like to avoid having to learn yet another tool when it's just to show a little demo to my students
<p4bl0>
anyway, ocamlbuild would do the job if it wasn't for menhir's bug
<p4bl0>
okay, I got what was wrong: in the %type declaration in menhir, it is mandatory to use the fully qualified type name, even if you have open'd the corresponding module
<p4bl0>
ocamlbuild works
<p4bl0>
yay
<companion_cube>
well as you wish, it's just simpler with dune
<p4bl0>
I'll give it a look when I have some time :)
<companion_cube>
look for example files, would be my advice :)
zolk3ri has quit [Ping timeout: 260 seconds]
<companion_cube>
for just a binary it can be super super simple
zolk3ri has joined #ocaml
jnavila has quit [Remote host closed the connection]
gravicappa has quit [Ping timeout: 276 seconds]
ggole has quit [Quit: Leaving]
<p4bl0>
simpler than ocamlbuild? I have nothing to do except "ocamlbuild -use-menhir test.byte"
<companion_cube>
I meant, compared to doing things manually or with a makefile.
<companion_cube>
(and it supplanted ocamlbuild for good reasons)
<p4bl0>
okay :)
<companion_cube>
for a tiny project, ocamlbuild is fine, indeed :)
analogue has quit [Quit: Leaving]
narimiran has quit [Remote host closed the connection]
kakadu has quit [Remote host closed the connection]
Serpent7776 has quit [Quit: leaving]
rwmjones has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rwmjones has joined #ocaml
malc_ has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
sshine has joined #ocaml
<sshine>
I see that the package 'ounit' has the description 'This is a transition package, ounit is now ounit2' -- does that mean one should be referring to 'ounit2' in dependencies?
<sshine>
also, someone said that referring to 'oUnit' in a dune file wouldn't work on their Mac. did capitalization conventions change, or is it incidental and wrong that 'oUnit' even worked at some point?
Haudegen has quit [Ping timeout: 240 seconds]
bitwinery has joined #ocaml
<companion_cube>
it's oUnit for me
<companion_cube>
could be somthing addressed in the last release
amiloradovsky has quit [Ping timeout: 245 seconds]
weird_error has joined #ocaml
AtumT_ has joined #ocaml
AtumT has quit [Read error: Connection reset by peer]