<Fooz>
Hi all - ocaml newbie question about modules. I have a module with a type 't' that represents an AST, and it is parameterized by a SIG with a type 'a' that is included in each constructor. I'm trying to create an instance of the AST module where 'a' includes some values of 't' (AST nodes with metadata referencing other AST nodes). The problem is
<Fooz>
that I'm unable to reference the constructors of type 'a' outside of the second module's definition. Am I missing something, is there a better way to do this, etc? This instance of the AST module is one of many, and I'd like to avoid moving its definition into the AST file and making it directly recursive if possible
osa1 has joined #ocaml
<d_bot>
<mseri> Inkbottle the difference should be in the number of samples. In the first plot they are 1000, in the second 10000. Also the function plotted is different, in the first are 1k normally sampled points with mean 0 and variance 1, in the second the logarithm of 10k uniformly sampled points so the distribution will have different parameters as well
<d_bot>
<mseri> Inkbottle the difference should be mostly in the number of samples. In the first plot they are 1000, in the second 10000. Also the function plotted is different, in the first are 1k normally sampled points with mean 0 and variance 1, in the second the logarithm of 10k uniformly sampled points so the distribution will have different parameters as well
ggole has joined #ocaml
<d_bot>
<mseri> The more the points the better they should approximate the distribution
<Hail_Spacecake>
but when I run the provided ocamlfind command, I get an error message
<Hail_Spacecake>
about two .cmi files make inconsistent assumptions over interface Gtk
tane has quit [Quit: Leaving]
wagle has joined #ocaml
amiloradovsky has joined #ocaml
mangoicedtea has joined #ocaml
<d_bot>
<Et7f3> dune handle low-lever for you and should avoid you this kind of error
<Hail_Spacecake>
does dune have a different set of default warning/error settings compared to ocamlfind ocamlc -g -package lablgtk2 -linkpkg simple.ml -o simple ?
<Hail_Spacecake>
it looks like the code in the example on that page doesn't compile with dune, but does compile with the ocamlc command
<Hail_Spacecake>
the latter has a warning about some line returning a type instead of ()