Skip to content

Commit

Permalink
Satisfy hlint
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 12, 2023
1 parent e07d0d3 commit ada9871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/ProjectConfig.hs
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ readProjectFileSkeleton
readExtensionFile =
reportParseResult verbosity extensionDescription extensionFile
=<< parseProjectSkeleton distDownloadSrcDirectory httpTransport verbosity [] extensionFile

Check warning on line 764 in cabal-install/src/Distribution/Client/ProjectConfig.hs

View workflow job for this annotation

GitHub Actions / hlint

Warning in readProjectFileSkeleton in module Distribution.Client.ProjectConfig: Redundant fmap ▫︎ Found: "parseProjectSkeleton\n distDownloadSrcDirectory httpTransport verbosity [] extensionFile\n =<< fmap (0,) (BS.readFile extensionFile)" ▫︎ Perhaps: "(parseProjectSkeleton\n distDownloadSrcDirectory httpTransport verbosity [] extensionFile\n . (0,)\n =<< BS.readFile extensionFile)"
=<< (fmap (0,) $ BS.readFile extensionFile)
=<< fmap (0,) (BS.readFile extensionFile)

-- | Render the 'ProjectConfig' format.
--
Expand Down

0 comments on commit ada9871

Please sign in to comment.