Skip to content

Commit 00f04ca

Browse files
committed
Never compile boot files
1 parent 54f043c commit 00f04ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ghcide/src/Development/IDE/Core/Rules.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@ getLinkableType f = use_ NeedsCompilation f
10241024

10251025
-- needsCompilationRule :: Rules ()
10261026
needsCompilationRule :: NormalizedFilePath -> Action (IdeResultNoDiagnosticsEarlyCutoff (Maybe LinkableType))
1027+
needsCompilationRule file | "boot" `isSuffixOf` (fromNormalizedFilePath file) = pure (Just $ encodeLinkableType Nothing, Just Nothing)
10271028
needsCompilationRule file = do
10281029
graph <- useNoFile GetModuleGraph
10291030
res <- case graph of

0 commit comments

Comments
 (0)