Skip to content

cabal init --lib creates MyLib.hs if Mylib.{something else} is present #7255

Closed

Description

@fgaz

Describe the bug

cabal init --lib creates MyLib.hs if Mylib.{something else} is present

To Reproduce

In an empty directory:

echo '> module MyLib where' > MyLib.lhs
cabal init --lib --source-dir .
cat MyLib.hs

Expected behavior

Since a module already exists, MyLib.hs does not get created

System information

cabal 3.2 and current master

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

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