ndmitchell/hlint

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

オープン

#1,615 opened on 2024/09/06

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Haskell (208 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (1,602 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド