ndmitchell/hlint

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

Aberta

#1.615 aberto em 6 de set. de 2024

 (3 comentários) (0 reação) (0 responsável)Haskell (208 forks)batch import
good first issue

Métricas do repositório

Stars
 (1.602 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador