Cannot parse the glob syntax for packages

Open
#12,171 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
haskell
Domain
build-system

Research direction

Start by reading the new Parsec-based project parser from #8889 and the package glob example in the users guide. Compare its result with the legacy parser for that example, then verify that the new parser accepts the same glob syntax and matches the legacy behavior.

Written by the indexing model from the issue text.

Description

type: bug

Describe the bug
The parsec project parser introduced in #8889 cannot parse the glob syntax for packages using the example from the users guide:

https://github.com/haskell/cabal/blob/d8c1b6f68df0a736c32a15ae85db9ffaf002ecb8/doc/cabal-project-description-file.rst?plain=1#L146

To Reproduce
I'll add a pull request that shows the problem.

Expected behavior
That the new parser matches the legacy parser, if we are to continue supporting the glob syntax.

Dominant language
Haskell
Stars
1.8k
Forks
766
Avg merge
5d 21h
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from haskell/cabal

All issues in haskell/cabal

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.