Skip to content

Commit 50fc3af

Browse files
Add exceptions to the restricted function hint.
1 parent c434319 commit 50fc3af

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ghcide/.hlint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@
114114
# Things that are unsafe in Haskell base library
115115
- {name: unsafeInterleaveIO, within: []}
116116
- {name: unsafeDupablePerformIO, within: []}
117-
- {name: unsafeCoerce, within: []}
117+
- {name: unsafeCoerce, within: [Ide.Plugin.Eval.Code]}
118118
# Things that are a bit dangerous in the GHC API
119-
- {name: nameModule, within: []}
119+
- {name: nameModule, within: [Compat.HieBin]}
120120

121121
# Add custom hints for this project
122122
#

plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Code.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ asStmts (Example e _) = NE.toList e
8080
asStmts (Property t _) =
8181
["prop11 = " ++ t, "(propEvaluation prop11 :: IO String)"]
8282

83-
{- HLINT ignore evalExpr "Avoid restricted function" -}
84-
8583
-- |Evaluate an expression (either a pure expression or an IO a)
8684
evalExpr :: GhcMonad m => [Char] -> m String
8785
evalExpr e = do

0 commit comments

Comments
 (0)