Skip to content

Per package/component cabal clean (add support for targets) #7506

Open
@michaelpj

Description

@michaelpj

cabal clean is both simple and effective, by virtue of just deleting everything. However, in a multi-package project, I usually want to clean just one package or component that I'm working on.

Of course, the current implementation works for this, but once you accrue a few local packages and a few source-repository-packages, redoing all the work instead of just the last bit becomes painful.

At the moment I work around this by deleting targeted fragments of dist-newstyle/build. This works, but:

  • it's clumsy
  • it's not discoverable
  • it's probably not comprehensively cleaning the package (I have no idea if it gets all the files!)

I think it would be nice to provide a per package/component cabal clean, and hopefully it would just be a matter of listing all the relevant files and deleting them.

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