cabal init -i should sanitize suggested package name (fix #8404) (#8561)
commite714824c6e652bf894f914bc57feccc15759668a
authorArtem Pelenitsyn <a.pelenitsyn@gmail.com>
Sat, 12 Nov 2022 02:48:55 +0000 (11 21:48 -0500)
committerGitHub <noreply@github.com>
Sat, 12 Nov 2022 02:48:55 +0000 (12 02:48 +0000)
tree675ab66752b6c41db7083eba100557d5399c3b09
parentc07f9998dfb16d9df39de17a1270d49d590df60e
cabal init -i should sanitize suggested package name (fix #8404) (#8561)

* cabal init -i should sanitize suggested package name (fix #8404)

* fix existing tests

* fix more tests (golden)

* fix more tests (generators, simple)

* add regression test

* add changelog

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
cabal-install/src/Distribution/Client/Init/Interactive/Command.hs
cabal-install/src/Distribution/Client/Init/NonInteractive/Heuristics.hs
cabal-install/src/Distribution/Client/Init/Utils.hs
cabal-install/tests/UnitTests/Distribution/Client/Init/Golden.hs
cabal-install/tests/UnitTests/Distribution/Client/Init/Interactive.hs
cabal-install/tests/UnitTests/Distribution/Client/Init/Simple.hs
changelog.d/pr-8561 [new file with mode: 0644]