<d_bot>
<gar> I need some help with codept. Currently it tells me what the deps are, but it only lists module names, without context. I need it to tell me, when A depends on B which is in dir foo/bar, that the dep is not just B but (Foo Bar B) (using sexp syntax). I'm trying to do this with groups, but that only seems to work locally - if A and B are both in Foo, and A depends on B, it will tell me the dep is (Foo B). But it won't do that for oth
rgrinberg has joined #ocaml
<d_bot>
<gar> ```
<d_bot>
<gar> asmcomp[asmcomp/CSEgen.ml,asmcomp/CSEgen.mli, ... all srcs in asmcomp ...]
<d_bot>
<gar> ...
<d_bot>
<gar> lambda[lambda/debuginfo.ml,lambda/debuginfo.mli, ... all srcs in lambda ...]
<remexre>
is there a way to make a functor polymorphic over a module type?
mbuf has quit [Quit: Leaving]
Skyfire has joined #ocaml
abraham has joined #ocaml
<d_bot>
<NULL> What would it mean?
mbuf has joined #ocaml
Haudegen has joined #ocaml
zebrag has quit [Remote host closed the connection]
glassofethanol has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shawnw has quit [Ping timeout: 256 seconds]
<sim642>
I guess they mean something like: functor (X: 'A) -> sig include 'A val extra: int end
glassofethanol has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
glassofethanol has joined #ocaml
glassofe1hanol has joined #ocaml
<sim642>
Although for it to really be useful, you probably want X to not be fully polymorphic but have some functions at least
glassofe1hanol has quit [Client Quit]
glassofethanol has quit [Client Quit]
<sim642>
Using which you could define extra functions in the extended module
glassofethanol has joined #ocaml
<sim642>
Occasionally I've also wanted something like this because in a hierarchy of modules it's annoying to have to define the functor for each argument type that still contains the necessary functions and I just want to include the rest as is
qwr has quit [Ping timeout: 250 seconds]
Serpent7776 has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
jonasbits has quit [Ping timeout: 265 seconds]
jonasbits has joined #ocaml
<octachron>
remexre, there are abstract module types, that can be somewhat used in this direction, but it depends a lot of what you mean by "polymorphic over a module type".
jlrnick has joined #ocaml
olle has joined #ocaml
jlrnick has quit [Ping timeout: 260 seconds]
namkeleser has quit [Ping timeout: 256 seconds]
spip has quit [Read error: Connection reset by peer]
spip has joined #ocaml
rks`_ is now known as rks`
bartholin has joined #ocaml
<d_bot>
<Kakadu> Folks, did you see printf with positional arguments in OCaml? Something like `printf "Hello %2 from %1" "Kakadu" "world"`
<d_bot>
<Kakadu> It could be useful in internationalization where words order matter
gravicappa has joined #ocaml
<d_bot>
<Bluddy> that would be nice but you'd have to combine it with type info
jlrnick has joined #ocaml
Anarchos has joined #ocaml
jlrnick has quit [Remote host closed the connection]
<d_bot>
<octachron> My internationalization library (https://github.com/Octachron/babilim) for my i18n patch on the compiler supports positional arguments for this reason.
Haudegen has quit [Quit: Bin weg.]
<d_bot>
<Blubub> Hello there, i would like to ask how to test my function that i made in a file with vscode? i've made a file called test.ml i wanted to run it and test the function with input arguments. is there any solution?
<d_bot>
<Blubub> i keep getting the file 'test.ml' has not the right magic number: expected Caml1999X028, got length l
<d_bot>
<octachron> @gar : first point, you need to open the namespaces with `-open Asmcomp` since the compiler subsystems are not aware of any namespacing. It will allow codept to deduce that the Longindent module referred in `typing` is `(Parsing Longident)`.
<d_bot>
<octachron> (And normally, codept should know that namespaces are not dependency themselves).
<d_bot>
<octachron> Concerning the file location, the dependencies only refers to (namespaced) modules but at the end of the dependencies there is an atlas of modules->files that should looks like `((module (Typing Typedecl_unboxed)) (ml typing/typedecl_unboxed.ml) (mli typing/typedecl_unboxed.mli))`
<d_bot>
<octachron> @Blubub , calling `ocaml test.ml` should work directly?
<d_bot>
<Blubub> no i've tried
<d_bot>
<Blubub> it said Cannot find file ./test.ml.
<d_bot>
<andreypopp> hm... I'm getting `Fatal error: out of memory` when hitting `assert false` in code.
<d_bot>
<andreypopp> originates from `caml_call_gc`
xd1le has quit [Quit: xd1le]
<d_bot>
<Kakadu> Thanks! Is this compiler being used to teach frankophones some OCaml?
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
<d_bot>
<octachron> No. But I did make a translation of error messages to French to have an idea of the amount of effort needed. At some point, I hope to try to release a version of this compiler with the i18n support.