Skip to content

Commit 5d579ab

Browse files
authored
Merge pull request #5759 from m-renaud/init-shorthands
Add `--lib`, `--exe`, and `--libandexe` shorthands to cabal init.
2 parents 889dd2e + c810162 commit 5d579ab

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cabal-install/Distribution/Client/Setup.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,18 +2309,18 @@ initCommand = CommandUI {
23092309
(reqArg' "FILE" (Just . (:[]))
23102310
(fromMaybe []))
23112311

2312-
, option [] ["is-library"]
2312+
, option [] ["lib", "is-library"]
23132313
"Build a library."
23142314
IT.packageType (\v flags -> flags { IT.packageType = v })
23152315
(noArg (Flag IT.Library))
23162316

2317-
, option [] ["is-executable"]
2317+
, option [] ["exe", "is-executable"]
23182318
"Build an executable."
23192319
IT.packageType
23202320
(\v flags -> flags { IT.packageType = v })
23212321
(noArg (Flag IT.Executable))
23222322

2323-
, option [] ["is-libandexe"]
2323+
, option [] ["libandexe", "is-libandexe"]
23242324
"Build a library and an executable."
23252325
IT.packageType
23262326
(\v flags -> flags { IT.packageType = v })

cabal-install/changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Add '--minimize-conflict-set' flag to try to improve the solver's
1010
error message, but with an increase in run time. (#5647)
1111
* v2-test now succeeds when there are no test suites. (#5435)
12+
* Add '--lib', '--exe', and '--libandexe' shorthands to init. (#5759)
1213

1314
2.4.1.0 Mikhail Glushenkov <[email protected]> November 2018
1415
* Add message to alert user to potential package casing errors. (#5635)

0 commit comments

Comments
 (0)