Skip to content

Commit 75658e4

Browse files
authored
1 parent 30224e3 commit 75658e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ cleanCmd = withConfig NoReexec . withBuildConfig . clean
553553
-- | Helper for build and install commands
554554
buildCmd :: BuildOptsCLI -> RIO Runner ()
555555
buildCmd opts = do
556-
when (any (("-prof" `elem`) . either (const []) id . parseArgs Escaping) (boptsCLIGhcOptions opts)) $ do
556+
when (any (("-prof" `elem`) . fromRight [] . parseArgs Escaping) (boptsCLIGhcOptions opts)) $ do
557557
logError "Error: When building with stack, you should not use the -prof GHC option"
558558
logError "Instead, please use --library-profiling and --executable-profiling"
559559
logError "See: https://github.com/commercialhaskell/stack/issues/1015"

0 commit comments

Comments
 (0)