Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cabal-install/Distribution/Client/Init.hs
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,11 @@ guessExtraSourceFiles flags = do
getLibOrExec :: InitFlags -> IO InitFlags
getLibOrExec flags = do
pkgType <- return (flagToMaybe $ packageType flags)
?>> maybePrompt flags (either (const Library) id `fmap`
?>> maybePrompt flags (either (const Executable) id `fmap`
promptList "What does the package build"
[Library, Executable, LibraryAndExecutable]
[Executable, Library, LibraryAndExecutable]
Nothing displayPackageType False)
?>> return (Just Library)
?>> return (Just Executable)

-- If this package contains an executable, get the main file name.
mainFile <- if pkgType == Just Library then return Nothing else
Expand Down