ndmitchell/hlint

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

開放

#1,615 建立於 2024年9月6日

 (3 則留言) (0 個反應) (0 位負責人)Haskell (208 個分叉)batch import
good first issue

倉庫指標

星標
 (1,602 顆星)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南