Skip to content

Commit fa868b5

Browse files
authored
Simplify hlint config (#3038)
Apparently I was just doing it wrong and naming multiple functions this way does work properly!
1 parent 445192e commit fa868b5

File tree

1 file changed

+9
-48
lines changed

1 file changed

+9
-48
lines changed

.hlint.yaml

+9-48
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,19 @@
8585

8686
# Partial functions
8787

88-
# For some reason we need to check fucntions which
88+
# We need to check fucntions which
8989
# are typically exported multiple ways under both names,
9090
# see https://github.com/ndmitchell/hlint/issues/1389
91-
- name: Prelude.head
91+
- name: [Prelude.head, Data.List.head]
9292
within:
9393
- Main
94+
- Experiments
9495
- Development.Benchmark.Rules
9596
- Development.IDE.Plugin.CodeAction
9697
- Development.IDE.Plugin.Completions
9798
- Development.IDE.Plugin.CodeAction.ExactPrint
9899
- Development.IDE.Spans.Documentation
100+
- Development.IDE.Session
99101
- Ide.Plugin.CallHierarchy.Internal
100102
- Ide.Plugin.Eval.Code
101103
- Ide.Plugin.Eval.Util
@@ -109,42 +111,18 @@
109111
- Typeclass
110112
- Wingman.Judgements
111113
- Wingman.Machinery
112-
113-
- name: Data.List.head
114-
within:
115-
- Main
116-
- Experiments
117-
- Development.IDE.Plugin.CodeAction
118-
- Development.IDE.Plugin.Completions
119-
- Development.IDE.Plugin.CodeAction.ExactPrint
120-
- Development.IDE.Session
121-
- Development.IDE.Spans.Documentation
122-
- Ide.Plugin.CallHierarchy.Internal
123-
- Ide.Plugin.Class
124114
- Wingman.Tactics
125-
- TExpectedActual
126-
- TRigidType
127115

128-
- name: Prelude.tail
116+
- name: [Prelude.tail, Data.List.tail]
129117
within:
130118
- Main
131119
- Development.Benchmark.Rules
132120
- Development.IDE.Plugin.CodeAction
133121
- Development.IDE.Plugin.CodeAction.ExactPrint
134-
- UnificationSpec
135-
136-
- name: Data.List.tail
137-
within:
138-
- Main
139-
- Development.Benchmark.Rules
140-
- Development.IDE.Plugin.CodeAction
141-
- Development.IDE.Plugin.CodeAction.ExactPrint
142122
- Development.IDE.Session
143-
- IDE.Plugin.Eval.Code
144-
- IDE.Plugin.Eval.Util
145123
- UnificationSpec
146124

147-
- name: Prelude.last
125+
- name: [Prelude.last, Data.List.last]
148126
within:
149127
- Main
150128
- Development.IDE.Plugin.CodeAction
@@ -155,12 +133,7 @@
155133
- Ide.Plugin.Eval.Parse.Comments
156134
- Ide.Plugin.Eval.CodeLens
157135

158-
- name: Data.List.last
159-
within:
160-
- GenChangelogs
161-
- Main
162-
163-
- name: Prelude.init
136+
- name: [Prelude.init, Data.List.init]
164137
within:
165138
- Main
166139
- Development.IDE.Spans.Common
@@ -169,33 +142,21 @@
169142
- Development.Benchmark.Rules
170143
- ErrorGivenPartialSignature
171144

172-
- name: Data.List.init
173-
within: []
174-
175145
- name: Data.List.foldl1'
176146
within: []
177147

178148
- name: Data.List.foldr1'
179149
within: []
180150

181-
- name: "Prelude.!!"
151+
- name: ["Prelude.!!", "Data.List.!!"]
182152
within:
183153
- Main
184-
- Development.IDE.Plugin.CodeAction
185-
- Development.IDE.Plugin.Completions.Logic
186-
- Development.IDE.Spans.Documentation
187-
- TErrorGivenPartialSignature
188-
- Wingman.CaseSplit
189-
- Wingman.Simplify
190-
191-
- name: "Data.List.!!"
192-
within:
193-
- Main
194154
- Experiments
195155
- FunctionalCodeAction
196156
- Development.IDE.Plugin.CodeAction
197157
- Development.IDE.Plugin.Completions.Logic
198158
- Development.IDE.Spans.Documentation
159+
- TErrorGivenPartialSignature
199160
- Wingman.CaseSplit
200161
- Wingman.Simplify
201162

0 commit comments

Comments
 (0)