<octachron>
flux[m], "type t := .." will only work in signature but yes "module type s = sig type t:= tmp end" results in a empty signature
<flux[m]>
heh, nice. but sometimes the disease is better than the cure :), if the module has a lot of other stuff that is
<flux[m]>
octachron: so sounds like it would fix this perfectly, with `type b_t := t type t += Ref of b_t` ?
jao has quit [Ping timeout: 246 seconds]
<octachron>
indeed, it was one of the motivation for the feature
jao has joined #ocaml
jao has quit [Ping timeout: 245 seconds]
Haudegen has quit [Remote host closed the connection]
gareppa has joined #ocaml
gareppa has quit [Max SendQ exceeded]
gareppa has joined #ocaml
<CcxWrk>
Is there a way to prettyprint whatever value? I see hooks for toplevel for this in Base, but can't find how to invoke it myself.
<theblatte>
no :/
<CcxWrk>
I was pointed at ppx_deriving, so hopefully it's show will be helpful.
<CcxWrk>
(Whenever I find out how to actually use it)
octachron has quit [Ping timeout: 246 seconds]
Haudegen has joined #ocaml
aspiwack[m] has quit [Ping timeout: 240 seconds]
copy` has quit [Ping timeout: 240 seconds]
peddie has quit [Ping timeout: 264 seconds]
isaachodes[m] has quit [Ping timeout: 240 seconds]
cgenie[m] has quit [Ping timeout: 240 seconds]
nojb_[m] has quit [Ping timeout: 252 seconds]
rgr[m] has quit [Ping timeout: 250 seconds]
flux[m] has quit [Ping timeout: 265 seconds]
Haudegen[m] has quit [Ping timeout: 265 seconds]
aecepoglu[m] has quit [Ping timeout: 250 seconds]
yetanotherion[m] has quit [Ping timeout: 250 seconds]
dl3br[m] has quit [Ping timeout: 250 seconds]
karan[m] has quit [Ping timeout: 250 seconds]
miguelbe[m] has quit [Ping timeout: 252 seconds]
Virgile[m] has quit [Ping timeout: 240 seconds]
nojb[m] has quit [Ping timeout: 240 seconds]
smondet[m] has quit [Ping timeout: 240 seconds]
regnat[m] has quit [Ping timeout: 252 seconds]
otini has quit [Ping timeout: 264 seconds]
Walter[m] has quit [Ping timeout: 250 seconds]
jimt[m] has quit [Ping timeout: 252 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
spectrumgomas[m] has quit [Ping timeout: 268 seconds]
hdurer[m] has quit [Ping timeout: 268 seconds]
lokydor[m] has quit [Ping timeout: 264 seconds]
octachron has joined #ocaml
silver has joined #ocaml
spew has joined #ocaml
<Leonidas>
CcxWrk: ppx_deriving generates show functions for each type, if your type doesn't have it, it won't help you
<CcxWrk>
It's for custom types, so that's fine. I'm just struggling make it compile right, (or recognize the annotation, merlin was complaining about that before I fiddled with opam and everything blew up)
<Leonidas>
CcxWrk: well, you add [@@deriving show] at your type and add (preprocess (pps ppx_deriving.show)) to your dune file
<CcxWrk>
I was compiling with just: ocamlfind ocamlc -linkpkg -package core -package ppx_deriving -package ppx_let -thread ppio.ml -o ppio.bc
<CcxWrk>
Then I tried to get dune working and now I'm picking up the pieces.
<Leonidas>
you probably need -package ppx_deriving.show but honestly I would suggest you use dune instead of wasting time to decipher how to run the compiler against your code.
<freyr69>
Does bigarray support custom finalization?
<freyr69>
Could I create a bigarray with a custom finalizer out of c stubs?
<CcxWrk>
I'd rather know this works under the hood. Anyway, now I'm getting "Error: Attribute `deriving' was not used" on https://bpaste.net/show/aff9d555ec4a
<CcxWrk>
(Will try to get dune working, this time without opam)
themsay has joined #ocaml
zolk3ri_ has joined #ocaml
zolk3ri_ has quit [Remote host closed the connection]
<Leonidas>
CcxWrk: yeah, there is some interaction between ppx_driver and ppx_deriving, where the latter does not mention that it has processed the attribute thus ppx_driver aborts compilation because it thinks the annotation was unused
<Leonidas>
CcxWrk: also color_pair and color_scheme must have deriving show.
notnotdan has quit [Quit: leaving]
AnAverageHuman has joined #ocaml
<CcxWrk>
Yeah, adding those only moves the error to first instance. And dune fails with "Error: No ppx driver were found."
FreeBirdLjj has joined #ocaml
gareppa has quit [Quit: Leaving]
<Leonidas>
CcxWrk: how does your dune file look like?
<Leonidas>
meh, v0.9 does not build on ocaml 4.07 :(
<CcxWrk>
Oops, sorry about the ANSI escapes there.
<CcxWrk>
Downloading latest opam-full
andrewlitteken has joined #ocaml
<CcxWrk>
And it doesn't install because it doesn't follow --prefix I gave it. *sigh*
ygrek has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
ygrek has quit [Read error: Connection reset by peer]
<CcxWrk>
So I reinstalled everything from scratch and now it compiles (with my Makefile). And after some fiddling I even found how to use the generated function.
sonologico has joined #ocaml
Serpent7776 has joined #ocaml
AtumT has joined #ocaml
ziyourenxiang_ has quit [Ping timeout: 246 seconds]
sonologico has quit [Ping timeout: 252 seconds]
jao has quit [Ping timeout: 264 seconds]
AnAverageHuman has quit [Ping timeout: 256 seconds]
sonologico has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
ygrek has joined #ocaml
AnAverageHuman has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
wiml has joined #ocaml
gravicappa has quit [Ping timeout: 246 seconds]
gravicappa has joined #ocaml
<wiml>
I'm trying to use ppx_optcomp to conditionally expose some internal functions only when I'm building with tests. I can't figure out how to define/undef a symbol for optcomp to look at, though. Is there a usual way to do this kind of thing? I'm not wedded to optcomp.
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
wiml has quit [Ping timeout: 250 seconds]
Keodedad has joined #ocaml
AnAverageHuman has joined #ocaml
Keodedad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aciniglio has joined #ocaml
gravicappa has quit [Ping timeout: 250 seconds]
wiml has joined #ocaml
kakadu_ has joined #ocaml
Serpent7776 has quit [Quit: leaving]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ocaml
xuib has quit [Quit: xuib]
AnAverageHuman has quit [Ping timeout: 256 seconds]
AnAverageHuman has joined #ocaml
keep_learning_M has quit [Ping timeout: 246 seconds]
stux|RC-only has quit [Ping timeout: 240 seconds]
keep_learning_M has joined #ocaml
jao has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
wiml has quit [Ping timeout: 250 seconds]
AnAverageHuman has quit [Ping timeout: 256 seconds]