Skip to content

Commit

Permalink
Merge pull request #5495 from commercialhaskell/qrilka-patch-1
Browse files Browse the repository at this point in the history
Use fromRight from hlint suggestion
  • Loading branch information
mattaudesse authored Feb 27, 2021
2 parents 30224e3 + 75658e4 commit 88b0ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ cleanCmd = withConfig NoReexec . withBuildConfig . clean
-- | Helper for build and install commands
buildCmd :: BuildOptsCLI -> RIO Runner ()
buildCmd opts = do
when (any (("-prof" `elem`) . either (const []) id . parseArgs Escaping) (boptsCLIGhcOptions opts)) $ do
when (any (("-prof" `elem`) . fromRight [] . parseArgs Escaping) (boptsCLIGhcOptions opts)) $ do
logError "Error: When building with stack, you should not use the -prof GHC option"
logError "Instead, please use --library-profiling and --executable-profiling"
logError "See: https://github.com/commercialhaskell/stack/issues/1015"
Expand Down

0 comments on commit 88b0ee9

Please sign in to comment.