We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30224e3 commit 75658e4Copy full SHA for 75658e4
1 file changed
src/main/Main.hs
@@ -553,7 +553,7 @@ cleanCmd = withConfig NoReexec . withBuildConfig . clean
553
-- | Helper for build and install commands
554
buildCmd :: BuildOptsCLI -> RIO Runner ()
555
buildCmd opts = do
556
- when (any (("-prof" `elem`) . either (const []) id . parseArgs Escaping) (boptsCLIGhcOptions opts)) $ do
+ when (any (("-prof" `elem`) . fromRight [] . parseArgs Escaping) (boptsCLIGhcOptions opts)) $ do
557
logError "Error: When building with stack, you should not use the -prof GHC option"
558
logError "Instead, please use --library-profiling and --executable-profiling"
559
logError "See: https://github.com/commercialhaskell/stack/issues/1015"
0 commit comments