Skip to content

Use cabal-add to fill missing build-depends automatically #3853

Closed
@Bodigrim

Description

@Bodigrim

When HLS gets an error "module Bla.Bla.Bla is a member of a hidden package bla" it should suggest a quick fix to insert the dependency on bla 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 create Config and write the result of executeConfig to the disk.

CC @VeryMilkyJoe on behalf of hls-cabal-plugin.

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