haskell / haskell/cabal

Cannot parse the glob syntax for packages

Open
#12,171 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**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.

Contributor guide

Open the contributing guide

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.