alunduil / alunduil/collection-json.hs

Evaluate hlint `generalise` group (`map`->`fmap`, `++`->`<>`)

未关闭
#172 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement infrastructure
主要语言
Haskell
星标
3
派生
1
平均合并
5 小时 32 分钟
30 天内合并 PR
67

描述

## Summary

Decide whether to enable the hlint `generalise` group as a modernization
guard.

## Motivation

Surveyed while assessing the config in #132: zero hits on current `src/`/`test/`.
The group generalises `map`->`fmap`, `++`->`<>`, `x /= []`->`not (null x)`,
`maybe []`->`foldMap`. Unlike `partial-strict` (which reinforces the repo's
existing anti-partial stance), this is a pure style opinion with no existing
config precedent to lean on — so it warrants a deliberate call rather than a
silent enable.

## Scope

- Decide enable vs skip.
- If enabled, add `- group: {name: generalise, enabled: true}` to `hlint.yaml`.

## Acceptance criteria

- [ ] Decision recorded with rationale.
- [ ] If enabled, `hlint.yaml` updated and CI green.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。