Skip to content

Follow HLint suggestion: use <$> - #12015

Open
philderbeast wants to merge 27 commits into
haskell:masterfrom
cabalism:hlint/use-fmap-operator
Open

Follow HLint suggestion: use <$>#12015
philderbeast wants to merge 27 commits into
haskell:masterfrom
cabalism:hlint/use-fmap-operator

Conversation

@philderbeast

Copy link
Copy Markdown
Collaborator

See #9110. Discharges and no longer ignores HLint's "use <$>" suggestion so that this will be suggested by our CI linting.

A similar suggestion, "use fmap", was merged earlier, with #11742.

There were some cascading suggestions that I tackled individually. I'll squash commits before applying the merge label if this pull request is approved.


  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

@philderbeast
philderbeast marked this pull request as draft June 24, 2026 01:47
@philderbeast
philderbeast force-pushed the hlint/use-fmap-operator branch 6 times, most recently from 032d9c5 to c0f2629 Compare June 24, 2026 02:22
@philderbeast
philderbeast marked this pull request as ready for review June 24, 2026 02:22
@philderbeast
philderbeast force-pushed the hlint/use-fmap-operator branch from c0f2629 to d6f48d1 Compare June 26, 2026 00:13
@philderbeast
philderbeast force-pushed the hlint/use-fmap-operator branch from d6f48d1 to 388296c Compare July 1, 2026 18:35
Comment thread cabal-install/src/Distribution/Client/IndexUtils/ActiveRepos.hs Outdated
Comment thread cabal-install/src/Distribution/Client/FileMonitor.hs Outdated
Comment thread cabal-install/src/Distribution/Client/ProjectOrchestration.hs Outdated
Comment thread cabal-install/src/Distribution/Client/TargetSelector.hs Outdated
Comment thread cabal-install/tests/UnitTests/Distribution/Client/ArbitraryInstances.hs Outdated
Comment thread Cabal/src/Distribution/Simple/Program/Find.hs Outdated
Comment thread cabal-install/tests/UnitTests/Distribution/Client/ProjectConfig.hs Outdated
Comment thread Cabal-syntax/src/Distribution/Types/CondTree.hs Outdated
@philderbeast
philderbeast force-pushed the hlint/use-fmap-operator branch from 1834ec6 to 91914a5 Compare July 5, 2026 12:28
@philderbeast
philderbeast force-pushed the hlint/use-fmap-operator branch 2 times, most recently from 580079b to 37f6728 Compare July 23, 2026 19:38
Comment thread cabal-install/tests/UnitTests/Distribution/Client/ProjectConfig.hs Outdated
Comment thread Cabal-syntax/src/Distribution/SPDX/LicenseExpression.hs Outdated
Comment thread Cabal-syntax/src/Distribution/Types/VersionRange/Internal.hs Outdated
Comment thread Cabal-syntax/src/Distribution/Types/AbiDependency.hs Outdated
Comment thread Cabal-syntax/src/Distribution/Types/Module.hs Outdated
Comment thread Cabal-syntax/src/Distribution/Utils/MD5.hs Outdated
Comment thread Cabal-syntax/src/Distribution/System.hs Outdated
@philderbeast
philderbeast force-pushed the hlint/use-fmap-operator branch 3 times, most recently from 712ac53 to 26b519a Compare July 31, 2026 15:36
@philderbeast philderbeast mentioned this pull request Jul 31, 2026
2 tasks
@philderbeast

Copy link
Copy Markdown
Collaborator Author

@Bodigrim I've made all of your suggested changes to use applicative style for parsing but felt these changes went much further than satisfying HLint so have split these refactorings into #12193.

@philderbeast
philderbeast force-pushed the hlint/use-fmap-operator branch from 8f7f107 to a3cc68a Compare August 13, 2026 20:37
@philderbeast
philderbeast force-pushed the hlint/use-fmap-operator branch from a3cc68a to a14b8bc Compare August 20, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants