-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for brace expansion #32
Comments
In general in shells brace expansion isn't considered part of path globbing, but it's a more generic expansion syntax. For instance Parsing out the brace expansion separately and handing each resulting word over to I don't know what Cabal would do in the All in all there'd be a bit of research involved to see what other globbing libraries do with brace expansion to scope out reasonable alternatives, and then some possible feature work as a result. Unfortunately, my usual disclaimer applies: I simply don't have the free time to spare for this kind of larger task any more. PRs are welcome, although in this case I'd first like to see some more analysis and that's probably best handled within this issue. |
https://cabal.readthedocs.io/en/latest/nix-local-build.html?highlight=packages#cfg-field-packages Anyways, I understand, thank you. I will try to separately unroll braces |
Hi, is it possible to add support for globs using this syntax?
This would match both
/path/to/a/c
and/path/to/b/c
.In
cabal.project
you can specify globs using this syntax ( the grammar is specified here).It would be really useful if one could use
Glob
to parse the whole syntax supported incabal.project
files, and as far as I understand, this is the only missing piece.The text was updated successfully, but these errors were encountered: