Skip to content

Commit 049983f

Browse files
committed
Follow hlint suggestion: redundant <$>
1 parent 0ccfc8a commit 049983f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Cabal/src/Distribution/Simple/Utils.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ dieWithLocation' verbosity filename mb_lineno msg =
454454
die' :: Verbosity -> String -> IO a
455455
die' verbosity msg = withFrozenCallStack $ do
456456
ioError . verbatimUserError
457-
=<< annotateErrorString verbosity
458-
=<< (wrapTextVerbosity (verbosityFlags verbosity) . addErrorPrefix <$> prefixWithProgName msg)
457+
=<< annotateErrorString verbosity . wrapTextVerbosity (verbosityFlags verbosity) . addErrorPrefix
458+
=<< prefixWithProgName msg
459459

460460
-- Type which will be a wrapper for cabal -exceptions and cabal-install exceptions
461461
data VerboseException a = VerboseException CallStack POSIXTime VerbosityFlags a

0 commit comments

Comments
 (0)