Skip to content

Replace cabal project parsing with Parsec #6101

Closed

Description

@typedrat

I plan on doing this, since as it stands I don't see a way to implement the sort of overriding syntax needed for #5522, and even if it is possible we should eat our veggies.

Activity

  1. self-assigned this
    on Jun 22, 2019
  2. phadej commented on Jun 25, 2019

    @phadej
    Collaborator

    @typedrat if you can pull it off, it would be super super great!

  3. Cmdv commented on Nov 30, 2022

    @Cmdv
    Collaborator

    Is the idea here to use the internal Parsec representation /cabal/Cabal-syntax/src/Distribution/Parsec/?
    If so where should one start looking for project parsing?

  4. ulysses4ever commented on Nov 30, 2022

    @ulysses4ever
    Collaborator

    Is the idea here to use the internal Parsec representation /cabal/Cabal-syntax/src/Distribution/Parsec/?

    Yes.

    If so where should one start looking for project parsing?

    I was wondering this myself, and it was tricky. At this point, rather than waiting for someone knowledgeable to reply, I'd compile it with profiling on, run it with -xc on a buggy project file, see it failing and study the stack trace...

  5. ulysses4ever commented on Dec 2, 2022

    @ulysses4ever
    Collaborator
  6. added
    re: project-file
    on Dec 2, 2022
  7. Cmdv commented on Dec 3, 2022

    @Cmdv
    Collaborator

    @ulysses4ever thanks I took a look prior to your comment but never came back to ask about what the "buggy project" was, as the linked issue was a little above my head right now 😓

    if you have a small example of what I'd need to run to see this error that would be great, in the mean time I'll also look at the linked file you've given 👍

  8. 17 remaining items

  9. added 5 commits that reference this issue on Jul 15, 2025
    8f1195b
    852838e
    39c4038
    ef1a05a
    86c7153
  10. added 2 commits that reference this issue on Aug 25, 2025
    9566ded
    ea2499e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions