-
Notifications
You must be signed in to change notification settings - Fork 722
Description
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).