Skip to content

cabal init will relocate and rename project structure #8787

Open
@cartazio

Description

Describe the bug
cabal init MOVEs preexisting data

To Reproduce

  1. cabal fetch $anything on hackage

  2. cabal init

Expected behavior
i expect (as in previous to cabal-install 3.8 or perhaps even much longer ago), that cabal init uses the preexisting project structure as hinting to suggest directory convention and what not. And not touch code if something already exists.

I do not expect that cabal init to MOVE/RENAME preexisting directories.

I expect cabal init to only clobber a preexisting .cabal file, and maybe LICENSE file. I'm not sure honestly. But i was definitely surprised by the moving.

why did i do cabal init on a preexisting code base

I wanted to generate a more modern .cabal file for a project!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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