[opam-devel] glob patterns and variables in opam files

Louis Gesbert louis.gesbert at ocamlpro.com
Tue Jun 9 03:16:23 BST 2015

> I'm afraid you're stuck with 'foo:name' at the moment, but I agree it's not
> > ideal.
> >
> > Ideas to improve on these welcome!
> >
> We basically need a "this" variable, which is what %{name}% is. Maybe
> interpolating nested variables would work, so we could really do
> %{%{name}%:lib}%.

I'd rather not allow them, because there is value in being able to statically check e.g. what other packages a package is referring to ; and the large amount of added expressiveness isn't really needed for this simple case. Would e.g. %{-:lib}% be clear enough ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.ocaml.org/pipermail/opam-devel/attachments/20150609/1420e782/attachment.sig>

More information about the opam-devel mailing list