ndmitchell/hlint

`within` changes the behavior of `modules: {as: }`

Open

#1,615 创建于 2024年9月6日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Haskell (1,594 star) (208 fork)batch import
good first issue

描述

We want to gradually become consistent with our naming of Data.List.NonEmpty, so we create an hlint rule:

- modules:
    - name: [Data.List.NonEmpty] 
      as: NE

I run hlint on our codebase to get all the currently failing examples, and I create a within to ignore them:

- modules:
    - name: [Data.List.NonEmpty] 
      as: NE
      within: [ ... ]

But now it starts complaining about importing Data.List.NonEmpty at all. It seems like within is causing it to ignore the as: key.

贡献者指南

`within` changes the behavior of `modules: {as: }` · ndmitchell/hlint#1615 | Good First Issue