# \#opam-compiler

**URL:** https://discuss.ocaml.org/tag/opam-compiler/390.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Ppxlib: Getting the original definition of \`typ\_constr\` like \`type\_declaration\` from \`core\_type\` of \`ptyp\_constr\`](https://discuss.ocaml.org/t/ppxlib-getting-the-original-definition-of-typ-constr-like-type-declaration-from-core-type-of-ptyp-constr/15110)

<div class="topic-metadata">

**Author:** [@ttzytt](https://discuss.ocaml.org/u/ttzytt)\
**Replies:** 9\
**Last updated:** [August 16, 2024, 7:19am UTC](https://discuss.ocaml.org/t/ppxlib-getting-the-original-definition-of-typ-constr-like-type-declaration-from-core-type-of-ptyp-constr/15110 "2024-08-16T07:19:25Z")

</div>

I’m currently learning using ppxlib to write ppx deriver, and I found this tutorial. Here’s an example of automatically generating a stringify function: let rec expr\_of\_type typ = let loc = typ.ptyp\_loc in match typ…

---

## [\[ANN\] opam-compiler 0.1.0](https://discuss.ocaml.org/t/ann-opam-compiler-0-1-0/6442)

<div class="topic-metadata">

**Author:** [@emillon](https://discuss.ocaml.org/u/emillon)\
**Replies:** 4\
**Last updated:** [October 14, 2020, 8:29am UTC](https://discuss.ocaml.org/t/ann-opam-compiler-0-1-0/6442 "2020-10-14T08:29:04Z")

</div>

Hello, On behalf of the opam maintainers, I’d like to announce the first release of opam-compiler, a plugin to work with compiler variants, branches and forks. This can cover a pretty wide range of use cases, so the fi…
