Skip to content

Commit 756f7d0

Browse files
committed
Ban Debug.Trace also
1 parent 3ad9318 commit 756f7d0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.hlint.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@
241241
- name: "GHC.Arr.!"
242242
within: []
243243

244+
- modules:
245+
- name: Debug.Trace
246+
within:
247+
- Development.IDE.Core.Compile
248+
- Development.IDE.Graph.Internal.Database
249+
- Development.IDE.GHC.Util
250+
- Wingman.Debug
251+
244252
# We really do not want novel usages of restricted functions, and mere
245253
# Warning is not enough to prevent those consistently; you need a build failure.
246254
- error: {name: Avoid restricted function}
255+
- error: {name: Avoid restricted module}

plugins/hls-alternate-number-format-plugin/test/Main.hs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Data.Either (rights)
77
import Data.List (find)
88
import Data.Text (Text)
99
import qualified Data.Text as T
10-
import Debug.Trace
1110
import qualified Ide.Plugin.AlternateNumberFormat as AlternateNumberFormat
1211
import qualified Ide.Plugin.Conversion as Conversion
1312
import Language.LSP.Types (toEither)

0 commit comments

Comments
 (0)