Skip to content

Commit 0555e09

Browse files
committed
Preserve comments in GetAnnotatedParsedSource
1 parent eb557b3 commit 0555e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ghcide/src/Development/IDE/GHC/ExactPrint.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ instance NFData GetAnnotatedParsedSource
7474
instance Binary GetAnnotatedParsedSource
7575
type instance RuleResult GetAnnotatedParsedSource = Annotated ParsedSource
7676

77-
-- | Get the latest version of the annotated parse source.
77+
-- | Get the latest version of the annotated parse source with comments.
7878
getAnnotatedParsedSourceRule :: Rules ()
7979
getAnnotatedParsedSourceRule = define $ \GetAnnotatedParsedSource nfp -> do
80-
pm <- use GetParsedModule nfp
80+
pm <- use GetParsedModuleWithComments nfp
8181
return ([], fmap annotateParsedSource pm)
8282

8383
annotateParsedSource :: ParsedModule -> Annotated ParsedSource

0 commit comments

Comments
 (0)