Skip to content

Commit 46d8dc5

Browse files
committed
Fix for rebase, add unsafePerformIO and fold1 variants
1 parent 2af99e9 commit 46d8dc5

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

.hlint.yaml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,22 @@
5050

5151
- functions:
5252
# Things that are unsafe in Haskell base library
53-
- {name: unsafeInterleaveIO, within: [Development.IDE.LSP.LanguageServer]}
53+
- name: unsafePerformIO
54+
within:
55+
- Development.IDE.Core.Shake
56+
- Development.IDE.GHC.Util
57+
- Development.IDE.Graph.Internal.Database
58+
- Development.IDE.Graph.Internal.Paths
59+
- Development.IDE.Graph.Internal.Profile
60+
- Ide.Types
61+
- Test.Hls
62+
- Test.Hls.Command
63+
- Wingman.Debug
64+
- Wingman.Types
65+
- AutoTupleSpec
66+
- name: unsafeInterleaveIO
67+
within:
68+
- Development.IDE.LSP.LanguageServer
5469
- {name: unsafeDupablePerformIO, within: []}
5570
- name: unsafeCoerce
5671
within:
@@ -63,6 +78,7 @@
6378
# Things that are a bit dangerous in the GHC API
6479
- name: nameModule
6580
within:
81+
- Development.IDE.GHC.CoreFile
6682
- Ide.Plugin.CallHierarchy.Internal
6783
- Ide.Plugin.Rename
6884
- Compat.HieBin
@@ -96,6 +112,20 @@
96112
- IDE.Plugin.Eval.Util
97113
- UnificationSpec
98114

115+
- name: Data.List.last
116+
within:
117+
- GenChangelogs
118+
- Main
119+
120+
- name: Data.List.init
121+
within: []
122+
123+
- name: Data.List.foldl1'
124+
within: []
125+
126+
- name: Data.List.foldr1'
127+
within: []
128+
99129
- name: "Data.List.!!"
100130
within:
101131
- Main
@@ -113,6 +143,13 @@
113143
- Development.IDE.Plugin.CodeAction
114144
- Development.IDE.Plugin.Completions.Logic
115145

146+
- name: Data.Foldable.foldl1
147+
within: []
148+
149+
- name: Data.Foldable.foldr1
150+
within:
151+
- Wingman.Tactics
152+
116153
- name: Data.Maybe.fromJust
117154
within:
118155
- Experiments

0 commit comments

Comments
 (0)