Skip to content

Commit 320c03b

Browse files
Appease pre-commit
1 parent 760fdc0 commit 320c03b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

ghcide-test/exe/CompletionTests.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ import Test.Hls.Util
3333
import Test.Tasty
3434
import Test.Tasty.HUnit
3535

36-
import System.IO
37-
38-
3936
tests :: TestTree
4037
tests
4138
= testGroup "completion"

ghcide/src/Development/IDE/Plugin/Completions/Logic.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ getCompletionPrefixFromRope pos@(Position l c) ropetext =
878878
[] -> Nothing
879879
(x:xs) -> do
880880
let modParts = reverse $ filter (not .T.null) xs
881-
-- Must check the prefix is a valid module name, else record dot accesses treat
881+
-- Must check the prefix is a valid module name, else record dot accesses treat
882882
-- the record name as a qualName for search and generated imports
883883
modName = if all (isUpper . T.head) modParts then T.intercalate "." modParts else ""
884884
return $ PosPrefixInfo { fullLine = curLine, prefixScope = modName, prefixText = x, cursorPos = pos }

0 commit comments

Comments
 (0)