Skip to content

Split Cabal into Cabal-syntax and Cabal? #7559

@gbaz

Description

@gbaz

As discussed in #7548 (comment) , some people find a dependency on the full Cabal library somewhat heavyweight for just doing cabal file parsing without actually executing any builds.

In general, I think splitting off the basic file parsing and syntax tree stuff of the lib into Cabal-syntax or the like would be a fine idea, and probably help with code organization to boot.

Maybe this could be a next step after the exactprint work, and it might also help encourage ides to integrate with the cabal library.

A bit more wild of an idea maybe the functionality of https://hackage.haskell.org/package/cabal-install-parsers could be deprecated by moving cabal-install's parsers into Cabal-parsers as well.

Ideally I think this (along with exact-print) would help tools be more comfortable using the already built utilities for cabal files instead of rolling their own (or punting).

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