Use cabal-add to fill missing build-depends automatically #3853
Labels
component: hls-cabal-plugin
Issues related to the hls-cabal-plugin
type: enhancement
New feature or request
When HLS gets an error "module
Bla.Bla.Bla
is a member of a hidden packagebla
" it should suggest a quick fix to insert the dependency onbla
into Cabal file using https://github.com/Bodigrim/cabal-add and carry on.cabal-add
draft API can be examined here: https://hackage.haskell.org/package/cabal-add-0.1/candidate/docs/Distribution-Client-Add.html. My impression is that HLS should be very much capable to createConfig
and write the result ofexecuteConfig
to the disk.CC @VeryMilkyJoe on behalf of
hls-cabal-plugin
.The text was updated successfully, but these errors were encountered: